use _GNU_SOURCE on Linux to have all useful definitions (pthread_rwlock_t) for example

This commit is contained in:
Vladislav Vaintroub 2010-01-13 16:52:14 +01:00
commit 5cddb6c15f
3 changed files with 3 additions and 1 deletions

View file

@ -49,6 +49,7 @@ ENDIF()
IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
SET(TARGET_OS_LINUX 1)
SET(HAVE_NPTL 1)
SET(_GNU_SOURCE 1)
ELSEIF(CMAKE_SYSTEM_NAME MATCHES "SunOS")
SET(TARGET_OS_SOLARIS 1)
ENDIF()