Skip to content

Commit

Permalink
Merge pull request #268 from stoffu/aeon-semun
Browse files Browse the repository at this point in the history
Define _WANT_SEMUN for FreeBSD to ensure `union semun` is defined monero/monero-project#5777
  • Loading branch information
aeonix authored Apr 1, 2022
2 parents 6aaea21 + 7fd8193 commit 88d374b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions external/db_drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 88d374b

Please sign in to comment.