aboutsummaryrefslogtreecommitdiff
path: root/external/db_drivers/CMakeLists.txt
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-09-14 13:02:58 +0200
committerRiccardo Spagni <ric@spagni.net>2018-09-14 13:02:58 +0200
commit9f24e57dc225a26583571792caa0a948904ef21c (patch)
tree73d9603806fbabf485e128fb9b020758c4f3f30c /external/db_drivers/CMakeLists.txt
parentMerge pull request #4380 (diff)
parentNetBSD support (diff)
downloadmonero-9f24e57dc225a26583571792caa0a948904ef21c.tar.xz
Merge pull request #4326
bcda7adc NetBSD support (thomasvaughan)
Diffstat (limited to 'external/db_drivers/CMakeLists.txt')
-rw-r--r--external/db_drivers/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/external/db_drivers/CMakeLists.txt b/external/db_drivers/CMakeLists.txt
index 13f70aa40..d537ec029 100644
--- a/external/db_drivers/CMakeLists.txt
+++ b/external/db_drivers/CMakeLists.txt
@@ -32,3 +32,6 @@ message(STATUS "Using ${ARCH_WIDTH}-bit LMDB from source tree")
add_subdirectory(liblmdb)
set(LMDB_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/liblmdb" CACHE STRING "LMDB Include path")
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")
+endif()