1
0
Fork 0

FreeBSD requires __POSIX_VISIBLE macro to be defined

This commit is contained in:
worktycho 2014-05-28 20:39:47 +01:00
parent 171e13de4f
commit 1cf426d881
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@ if (WIN32)
source_group("Sources" FILES ${SOURCE})
endif()
# FreeBSD requires us to define this to get POSIX 2001 standard
if (SYSTEM_NAME STREQUAL "FreeBSD"))
add_flags_cxx(-D__POSIX_VISIBLE=200112)
endif()
add_library(sqlite ${SOURCE})