All: Replace menagerie for *_SOURCE flags for Linux with _GNU_SOURCE
Jeffrey Pfau jeffrey@endrift.com
Sat, 13 Jun 2015 05:06:34 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.txt
@@ -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")