summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Adamansky <adamansky@gmail.com>2015-05-13 17:24:57 +0600
committerAnton Adamansky <adamansky@gmail.com>2015-05-13 17:24:57 +0600
commit8d847f50e7f35df6d2cd56f05d6334ddf3776589 (patch)
treed0d4404f1219d71e6f4fa3a7b8e93a4a4ec986ba
parent38b18fc66754ae932b0e1d0485a7980fbd4b36ea (diff)
downloadejdb-8d847f50e7f35df6d2cd56f05d6334ddf3776589.tar.gz
ejdb-8d847f50e7f35df6d2cd56f05d6334ddf3776589.tar.bz2
ejdb-8d847f50e7f35df6d2cd56f05d6334ddf3776589.zip
Added -D_POSIX_THREAD_SAFE_FUNCTIONS to be used in latest mingw
-rw-r--r--src/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index cc843b6..5702d88 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -119,7 +119,8 @@ if (WIN32)
endif()
list(INSERT EJDB_LLIBRARIES 0 -lwinpthread -lpcreposix -lpcre)
add_definitions(-DPCRE_STATIC)
-
+ add_definitions(-D_POSIX_THREAD_SAFE_FUNCTIONS)
+
else()
check_include_file(glob.h HAVE_GLOB_H)