Index: Makefile =================================================================== --- Makefile (revision 450355) +++ Makefile (working copy) @@ -15,8 +15,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -# XXX FreeBSD does not implement O_DSYNC and fdatasync at this time. -CFLAGS+= -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync WRKSRC_SUBDIR= libraries/liblmdb MAKE_ARGS+= CC="${CC}" MAKE_ARGS+= prefix="${PREFIX}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" Index: distinfo =================================================================== --- distinfo (revision 450355) +++ distinfo (working copy) @@ -1,3 +1,3 @@ -TIMESTAMP = 1496563931 +TIMESTAMP = 1506080624 SHA256 (LMDB-lmdb-LMDB_0.9.21_GH0.tar.gz) = 1187b635a4cc415bb6972bba346121f81edd996e99b8f0816151d4090f90b559 SIZE (LMDB-lmdb-LMDB_0.9.21_GH0.tar.gz) = 143352 Index: files/patch-mdb.c =================================================================== --- files/patch-mdb.c (nonexistent) +++ files/patch-mdb.c (working copy) @@ -0,0 +1,11 @@ +--- 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 Property changes on: files/patch-mdb.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property