summaryrefslogtreecommitdiffstats
path: root/databases/mdbtools
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2005-12-11 15:39:01 +0000
committersem <sem@FreeBSD.org>2005-12-11 15:39:01 +0000
commit44d00b968cd356f231464bab447b7639298819f9 (patch)
tree0fcb839b01c9d34da0ebd10ceff96408336327f2 /databases/mdbtools
parent94e2b7ccd18b1fef96993cc19dd2b238e87c93fe (diff)
downloadFreeBSD-ports-44d00b968cd356f231464bab447b7639298819f9.zip
FreeBSD-ports-44d00b968cd356f231464bab447b7639298819f9.tar.gz
- Add `extern "C"' in headers files. It fixes linking with C++ applications.
Discussed with: Alex Lyashkov (Umka #bsd-unix @rusnet)
Diffstat (limited to 'databases/mdbtools')
-rw-r--r--databases/mdbtools/Makefile2
-rw-r--r--databases/mdbtools/files/patch-include_mdbsql.h21
-rw-r--r--databases/mdbtools/files/patch-include_mdbtools.h22
3 files changed, 44 insertions, 1 deletions
diff --git a/databases/mdbtools/Makefile b/databases/mdbtools/Makefile
index 4d897be..a092c96 100644
--- a/databases/mdbtools/Makefile
+++ b/databases/mdbtools/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mdbtools
PORTVERSION= 0.5
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/databases/mdbtools/files/patch-include_mdbsql.h b/databases/mdbtools/files/patch-include_mdbsql.h
new file mode 100644
index 0000000..0b4f8a6
--- /dev/null
+++ b/databases/mdbtools/files/patch-include_mdbsql.h
@@ -0,0 +1,21 @@
+--- include/mdbsql.h.orig Sun Dec 11 18:22:34 2005
++++ include/mdbsql.h Sun Dec 11 18:23:20 2005
+@@ -6,6 +6,10 @@
+ #ifndef _mdbsql_h_
+ #define _mdbsql_h_
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ typedef struct {
+ MdbHandle *mdb;
+ int all_columns;
+@@ -59,4 +63,7 @@
+ void mdb_sql_listtables(MdbSQL *sql);
+ void mdb_sql_select(MdbSQL *sql);
+
++#ifdef __cplusplus
++}
++#endif
+ #endif
diff --git a/databases/mdbtools/files/patch-include_mdbtools.h b/databases/mdbtools/files/patch-include_mdbtools.h
new file mode 100644
index 0000000..6933bc3
--- /dev/null
+++ b/databases/mdbtools/files/patch-include_mdbtools.h
@@ -0,0 +1,22 @@
+--- include/mdbtools.h.orig Sun Dec 11 18:22:42 2005
++++ include/mdbtools.h Sun Dec 11 18:23:32 2005
+@@ -40,6 +40,10 @@
+ #define MDB_MEMO_OVERHEAD 12
+ #define MDB_BIND_SIZE 16384
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ enum {
+ MDB_PAGE_DB = 0,
+ MDB_PAGE_DATA,
+@@ -345,4 +349,8 @@
+ /* index.c */
+ extern GPtrArray *mdb_read_indices(MdbTableDef *table);
+ extern void mdb_index_dump(MdbTableDef *table, MdbIndex *idx);
++
++#ifdef __cplusplus
++}
++#endif
+ #endif /* _mdbtools_h_ */
OpenPOWER on IntegriCloud