All: Replace menagerie for *_SOURCE flags for Linux with _GNU_SOURCE

This commit is contained in:
Jeffrey Pfau 2015-06-13 05:06:34 -07:00
parent d1a51637bc
commit 68c183e4bf
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ elseif(UNIX)
add_definitions(-DUSE_PTHREADS)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_definitions(-D_BSD_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE=200809L)
add_definitions(-D_GNU_SOURCE)
endif()
if(NOT APPLE AND NOT HAIKU)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")