summaryrefslogtreecommitdiffstats
path: root/lib/sqlite
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlite')
-rw-r--r--lib/sqlite/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlite/CMakeLists.txt b/lib/sqlite/CMakeLists.txt
index 0815127ef..d3bba6606 100644
--- a/lib/sqlite/CMakeLists.txt
+++ b/lib/sqlite/CMakeLists.txt
@@ -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})