From 85eaea9afda3f845c563116a130266b89540a54c Mon Sep 17 00:00:00 2001 From: Alex Dupre Date: Fri, 12 Jul 2013 10:15:23 +0200 Subject: [PATCH] Use O_SYNC on FreeBSD instead of O_DSYNC. --- SConstruct | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SConstruct b/SConstruct index dfe3c783f0..51d80ac4df 100644 --- a/SConstruct +++ b/SConstruct @@ -187,6 +187,10 @@ env.Append(CXXFLAGS = ['-frtti']) if (int(GCC_VERSION[0]) > 4 or (int(GCC_VERSION[0]) == 4 and int(GCC_VERSION[1]) >= 7)): env.Append(CXXFLAGS = ['-std=c++11']) +# FreeBSD doesn't support O_DSYNC +if FreeBSD: + env.Append(CPPFLAGS = ['-DMDB_DSYNC=O_SYNC']) + if OSX: env.Append(LINKFLAGS = ['-L/usr/local/opt/openssl/lib']) env.Append(CXXFLAGS = ['-I/usr/local/opt/openssl/include'])