ports/databases/lmdb/files/patch-mdb.c
Pietro Cerutti 8341a0ab26 databases/lmdb: use fdatasync where supported
Submitted upstream in http://www.openldap.org/its/index.cgi?findid=8739

PR:		222514
Submitted by:	gahr
Approved by:	delphij (maintainer, via private email)
2017-09-25 09:37:33 +00:00

11 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