summaryrefslogtreecommitdiff
path: root/databases/db5/files/patch-src_dbinc_db.in
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2018-08-02 16:05:16 +0000
committerMatthias Andree <mandree@FreeBSD.org>2018-08-02 16:05:16 +0000
commit105a8b5ab2a39e90e27e87da96d46bd629ca950f (patch)
treeeaad4568b319b0e7cf195e125754239a37583f01 /databases/db5/files/patch-src_dbinc_db.in
parentAdd devel/py-cbor2 (diff)
databases/db5, db6: enable DBM compatibility
Enable DBM API. [1] Reorder license information of db5/Makefile to fix portlint warning. [1] Bump PORTREVISON. [1] Add command creating symbolic link such as ${PREFIX}/lib/libdb-6.so to post-install target of db6/Makefile. [1] Instead of USE_GCC, patch src/dbinc/db.in to not expose the store() macro under C++. Mark db6 broken on MIPS64 for now, we do not have a workable MUTEX implementation. Unbreak build on AARCH64, where the db6 autoconfiguration chooses the wrong MUTEX. PR: 230191 Submitted by: Yasuhiro Kimura
Notes
Notes: svn path=/head/; revision=476241
Diffstat (limited to 'databases/db5/files/patch-src_dbinc_db.in')
-rw-r--r--databases/db5/files/patch-src_dbinc_db.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/databases/db5/files/patch-src_dbinc_db.in b/databases/db5/files/patch-src_dbinc_db.in
new file mode 100644
index 000000000000..e65fc1046f48
--- /dev/null
+++ b/databases/db5/files/patch-src_dbinc_db.in
@@ -0,0 +1,15 @@
+--- src/dbinc/db.in.orig 2013-09-09 15:35:08 UTC
++++ src/dbinc/db.in
+@@ -2778,11 +2778,11 @@ typedef struct {
+ #define dbmclose __db_dbm_close@DB_VERSION_UNIQUE_NAME@
+ #if !defined(__cplusplus)
+ #define delete(a) __db_dbm_delete@DB_VERSION_UNIQUE_NAME@(a)
++#define store(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b)
+ #endif
+ #define fetch(a) __db_dbm_fetch@DB_VERSION_UNIQUE_NAME@(a)
+ #define firstkey __db_dbm_firstkey@DB_VERSION_UNIQUE_NAME@
+ #define nextkey(a) __db_dbm_nextkey@DB_VERSION_UNIQUE_NAME@(a)
+-#define store(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b)
+
+ /*******************************************************
+ * Hsearch historic interface.