diff options
author | Noel O'Donnell <6617714+odonnellnoel@users.noreply.github.com> | 2019-07-26 03:00:42 +0100 |
---|---|---|
committer | Noel O'Donnell <6617714+odonnellnoel@users.noreply.github.com> | 2019-07-27 20:39:50 +0100 |
commit | 757b789c3047d2659af15d1f3d6e484f7893f8b9 (patch) | |
tree | b9a52e18535c3c916a20e39736f0feaf8c899f3b /external/db_drivers | |
parent | Merge pull request #5635 (diff) | |
download | monero-757b789c3047d2659af15d1f3d6e484f7893f8b9.tar.xz |
Define _WANT_SEMUN for FreeBSD to ensure `union semun` is defined
Build was failing on GhostBSD (FreeBSD-13.0) because `union semun` is switched off by default. Defining _WANT_SEMUN switches it on.
Diffstat (limited to 'external/db_drivers')
-rw-r--r-- | external/db_drivers/CMakeLists.txt | 2 |
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() |