aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-21 15:28:10 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-21 15:28:10 -0500
commit415005aceb9259dbf45dd6cb1279d3290936134a (patch)
tree95e35fbd2f20f9e77b08c9003212ae8accfb6ce2 /external
parentMerge pull request #5775 (diff)
parentDefine _WANT_SEMUN for FreeBSD to ensure `union semun` is defined (diff)
downloadmonero-415005aceb9259dbf45dd6cb1279d3290936134a.tar.xz
Merge pull request #5777
757b789 Define _WANT_SEMUN for FreeBSD to ensure union semun is defined (odonnellnoel)
Diffstat (limited to 'external')
-rw-r--r--external/db_drivers/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/external/db_drivers/CMakeLists.txt b/external/db_drivers/CMakeLists.txt
index 04776c475..a9b29e0d7 100644
--- a/external/db_drivers/CMakeLists.txt
+++ b/external/db_drivers/CMakeLists.txt
@@ -34,4 +34,6 @@ set(LMDB_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/liblmdb" CACHE STRING "LMDB Includ
set(LMDB_LIBRARY "lmdb" CACHE STRING "LMDB Library name")
if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
set_property(TARGET lmdb APPEND_STRING PROPERTY COMPILE_FLAGS " -D_SEM_SEMUN_UNDEFINED")
+elseif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
+ set_property(TARGET lmdb APPEND_STRING PROPERTY COMPILE_FLAGS " -D_WANT_SEMUN")
endif()