aboutsummaryrefslogtreecommitdiff
path: root/databases/lmdb
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2018-09-03 12:08:40 +0000
committerJan Beich <jbeich@FreeBSD.org>2018-09-03 12:08:40 +0000
commitf9e1b3e8eb21ab6de16c7de1da8c026735409283 (patch)
tree1794767ee0aebe9bf5aa71f5e6339127adc2f5d5 /databases/lmdb
parent5d3104b27a57903b469c6ff06f3e7e38f8e516b9 (diff)
downloadports-f9e1b3e8eb21ab6de16c7de1da8c026735409283.tar.gz
ports-f9e1b3e8eb21ab6de16c7de1da8c026735409283.zip
Notes
Diffstat (limited to 'databases/lmdb')
-rw-r--r--databases/lmdb/Makefile2
-rw-r--r--databases/lmdb/files/patch-mdb.c24
2 files changed, 7 insertions, 19 deletions
diff --git a/databases/lmdb/Makefile b/databases/lmdb/Makefile
index 1b74c21f3bec..179531241fbd 100644
--- a/databases/lmdb/Makefile
+++ b/databases/lmdb/Makefile
@@ -4,7 +4,7 @@
PORTNAME= lmdb
PORTVERSION= 0.9.22
DISTVERSIONPREFIX= ${PORTNAME:tu}_
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= databases
diff --git a/databases/lmdb/files/patch-mdb.c b/databases/lmdb/files/patch-mdb.c
index f0d9335e26b0..5194cbbeb91a 100644
--- a/databases/lmdb/files/patch-mdb.c
+++ b/databases/lmdb/files/patch-mdb.c
@@ -1,23 +1,11 @@
-- NetBSD has fdatasync(2), see https://github.com/NetBSD/src/commit/e963c41c6fb9
-- OpenBSD has fdatasync(3), see https://github.com/openbsd/src/commit/aa96fc3dc04f
-- FreeBSD 11.0 has robust mutexes (see base r300043) and 11.1 has fdatasync(2) (see base r304977)
-
---- mdb.c.orig 2018-03-22 15:23:05 UTC
+--- mdb.c.orig 2017-06-01 16:51:10 UTC
+++ mdb.c
-@@ -124,11 +124,12 @@ typedef SSIZE_T ssize_t;
- #include <resolv.h> /* defines BYTE_ORDER on HPUX and Solaris */
- #endif
-
--#if defined(__APPLE__) || defined (BSD) || defined(__FreeBSD_kernel__)
--# define MDB_USE_POSIX_SEM 1
-+#if defined(__APPLE__) || defined(ANDROID) || defined(__DragonFly__) || (defined(__FreeBSD__) && __FreeBSD__ < 11)
+@@ -125,6 +125,8 @@ typedef SSIZE_T ssize_t;
+ # define MDB_FDATASYNC fsync
+ #elif defined(ANDROID)
# define MDB_FDATASYNC fsync
--#elif defined(ANDROID)
--# define MDB_FDATASYNC fsync
-+#endif
-+
-+#if defined(__APPLE__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ < 11)
-+# define MDB_USE_POSIX_SEM 1
++#elif defined(__FreeBSD_version) && __FreeBSD_version < 1101000
++# define MDB_FDATASYNC fsync
#endif
#ifndef _WIN32