Commit 10a7c78e authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

just in case old linux is used, add _GNU_SOURCE preprocessor constant to be...

just in case old linux is used, add _GNU_SOURCE preprocessor constant to be able to see pthread_rwlock_t
parent a87f4e1b
......@@ -22,7 +22,7 @@ INCLUDE(CheckCSourceRuns)
# OS tests
IF(UNIX)
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
ADD_DEFINITIONS("-DUNIV_LINUX")
ADD_DEFINITIONS("-DUNIV_LINUX -D_GNU_SOURCE=1")
ELSEIF(CMAKE_SYSTEM_NAME MATCHES "HP*")
ADD_DEFINITIONS("-DUNIV_HPUX -DUNIV_MUST_NOT_INLINE")
ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "AIX")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment