summaryrefslogtreecommitdiffstats
path: root/lib/sqlite
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2014-05-28 21:39:47 +0200
committerworktycho <work.tycho@gmail.com>2014-05-28 21:39:47 +0200
commit1cf426d881e1ea3dbfae5ebae701e02cd41c95a0 (patch)
tree8f05441d311de2a7f073ac4820c4e2c063a2b3d9 /lib/sqlite
parentfor compiliers other than msvc we need to tell lua that its building as a dll (diff)
downloadcuberite-1cf426d881e1ea3dbfae5ebae701e02cd41c95a0.tar
cuberite-1cf426d881e1ea3dbfae5ebae701e02cd41c95a0.tar.gz
cuberite-1cf426d881e1ea3dbfae5ebae701e02cd41c95a0.tar.bz2
cuberite-1cf426d881e1ea3dbfae5ebae701e02cd41c95a0.tar.lz
cuberite-1cf426d881e1ea3dbfae5ebae701e02cd41c95a0.tar.xz
cuberite-1cf426d881e1ea3dbfae5ebae701e02cd41c95a0.tar.zst
cuberite-1cf426d881e1ea3dbfae5ebae701e02cd41c95a0.zip
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})