freebsd-ports/databases/lmdb/files/patch-mdb.c
Jan Beich f9e1b3e8eb databases/lmdb: back out r478269 due to cyrus-imapd30 instability
Robust mutexes were already enabled but r478269 disabled POSIX
semaphores. It appears both are only mutually exclusive on Android and
old GNU libc.

PR:		230564
Reported by:	Volodymyr Kostyrko
Pointy hat to:	jbeich
2018-09-03 12:08:40 +00:00

12 lines
302 B
C

--- mdb.c.orig 2017-06-01 16:51:10 UTC
+++ mdb.c
@@ -125,6 +125,8 @@ typedef SSIZE_T ssize_t;
# define MDB_FDATASYNC fsync
#elif defined(ANDROID)
# define MDB_FDATASYNC fsync
+#elif defined(__FreeBSD_version) && __FreeBSD_version < 1101000
+# define MDB_FDATASYNC fsync
#endif
#ifndef _WIN32