Date: Mon, 25 Sep 2017 09:37:33 +0000 (UTC) From: Pietro Cerutti <gahr@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r450579 - in head/databases/lmdb: . files Message-ID: <201709250937.v8P9bXvL067679@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gahr Date: Mon Sep 25 09:37:33 2017 New Revision: 450579 URL: https://svnweb.freebsd.org/changeset/ports/450579 Log: 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) Added: head/databases/lmdb/files/patch-mdb.c (contents, props changed) Modified: head/databases/lmdb/Makefile Modified: head/databases/lmdb/Makefile ============================================================================== --- head/databases/lmdb/Makefile Mon Sep 25 09:22:14 2017 (r450578) +++ head/databases/lmdb/Makefile Mon Sep 25 09:37:33 2017 (r450579) @@ -15,8 +15,6 @@ LICENSE_NAME= OpenLDAP Public License 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}" Added: head/databases/lmdb/files/patch-mdb.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/lmdb/files/patch-mdb.c Mon Sep 25 09:37:33 2017 (r450579) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709250937.v8P9bXvL067679>