View | Details | Raw Unified | Return to bug 230564 | Differences between
and this patch

Collapse All | Expand All

(-)b/databases/lmdb/Makefile (+1 lines)
Lines 4-9 Link Here
4
PORTNAME=	lmdb
4
PORTNAME=	lmdb
5
PORTVERSION=	0.9.22
5
PORTVERSION=	0.9.22
6
DISTVERSIONPREFIX=	${PORTNAME:tu}_
6
DISTVERSIONPREFIX=	${PORTNAME:tu}_
7
PORTREVISION=	1
7
PORTEPOCH=	1
8
PORTEPOCH=	1
8
CATEGORIES=	databases
9
CATEGORIES=	databases
9
10
(-)b/databases/lmdb/files/patch-mdb.c (-6 / +18 lines)
Lines 1-11 Link Here
1
--- mdb.c.orig	2017-06-01 16:51:10 UTC
1
- NetBSD has fdatasync(2), see https://github.com/NetBSD/src/commit/e963c41c6fb9
2
- OpenBSD has fdatasync(3), see https://github.com/openbsd/src/commit/aa96fc3dc04f
3
- FreeBSD 11.0 has robust mutexes (see base r300043) and 11.1 has fdatasync(2) (see base r304977)
4
5
--- mdb.c.orig	2018-03-22 15:23:05 UTC
2
+++ mdb.c
6
+++ mdb.c
3
@@ -125,6 +125,8 @@ typedef SSIZE_T	ssize_t;
7
@@ -124,11 +124,12 @@ typedef SSIZE_T	ssize_t;
4
 # define MDB_FDATASYNC		fsync
8
 #include <resolv.h>	/* defines BYTE_ORDER on HPUX and Solaris */
5
 #elif defined(ANDROID)
9
 #endif
10
 
11
-#if defined(__APPLE__) || defined (BSD) || defined(__FreeBSD_kernel__)
12
-# define MDB_USE_POSIX_SEM	1
13
+#if defined(__APPLE__) || defined(ANDROID) || defined(__DragonFly__) || (defined(__FreeBSD__) && __FreeBSD__ < 11)
6
 # define MDB_FDATASYNC		fsync
14
 # define MDB_FDATASYNC		fsync
7
+#elif defined(__FreeBSD_version) && __FreeBSD_version < 1101000
15
-#elif defined(ANDROID)
8
+# define MDB_FDATASYNC		fsync
16
-# define MDB_FDATASYNC		fsync
17
+#endif
18
+
19
+#if defined(__APPLE__) || defined(__DragonFly__) || defined(__NetBSD__) || defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ < 11)
20
+# define MDB_USE_POSIX_SEM	1
9
 #endif
21
 #endif
10
 
22
 
11
 #ifndef _WIN32
23
 #ifndef _WIN32

Return to bug 230564