Commit cf473227 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 ce59ee80
...@@ -22,7 +22,7 @@ INCLUDE(CheckCSourceRuns) ...@@ -22,7 +22,7 @@ INCLUDE(CheckCSourceRuns)
# OS tests # OS tests
IF(UNIX) IF(UNIX)
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
ADD_DEFINITIONS("-DUNIV_LINUX") ADD_DEFINITIONS("-DUNIV_LINUX -D_GNU_SOURCE=1")
ELSEIF(CMAKE_SYSTEM_NAME MATCHES "HP*") ELSEIF(CMAKE_SYSTEM_NAME MATCHES "HP*")
ADD_DEFINITIONS("-DUNIV_HPUX -DUNIV_MUST_NOT_INLINE") ADD_DEFINITIONS("-DUNIV_HPUX -DUNIV_MUST_NOT_INLINE")
ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "AIX") 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