1
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

View File

@ -17,6 +17,10 @@ if (WIN32)
source_group("Sources" FILES ${SOURCE}) source_group("Sources" FILES ${SOURCE})
endif() 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}) add_library(sqlite ${SOURCE})