aboutsummaryrefslogtreecommitdiff
path: root/external/db_drivers/liblmdb64
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-05-26 19:47:34 -0400
committerRiccardo Spagni <ric@spagni.net>2015-07-16 11:22:39 +0200
commitea08c768e27d594a91ad511feb9794bda3fe1c2a (patch)
treeb5c21e6940593677887798d7811abd5d51dff1bf /external/db_drivers/liblmdb64
parentMerge pull request #338 (diff)
downloadmonero-ea08c768e27d594a91ad511feb9794bda3fe1c2a.tar.xz
open() flag O_DSYNC isn't on BSD, use O_SYNC
If the detected OS is FreeBSD, tell LMDB to compile with MDB_DSYNC=O_SYNC instead of the default O_DSYNC, as BSD does not implement this flag.
Diffstat (limited to 'external/db_drivers/liblmdb64')
-rw-r--r--external/db_drivers/liblmdb64/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/external/db_drivers/liblmdb64/CMakeLists.txt b/external/db_drivers/liblmdb64/CMakeLists.txt
index 62b800135..bca7ff51e 100644
--- a/external/db_drivers/liblmdb64/CMakeLists.txt
+++ b/external/db_drivers/liblmdb64/CMakeLists.txt
@@ -26,6 +26,10 @@
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+if(FREEBSD)
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMDB_DSYNC=O_SYNC")
+endif()
+
set (lmdb_sources
mdb.c
midl.c)