diff options
author | Chris Robinson <[email protected]> | 2016-01-21 17:18:08 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-01-21 17:18:08 -0800 |
commit | fb599b5b83f8c6926d2c30a18fa093d14ea087a2 (patch) | |
tree | 0ec0dbc33181548d94ec28a2df9be43d02eeab97 | |
parent | 26f5d385d557e677ef3c0600343a9997d3bebe3c (diff) |
Lower the _POSIX_C_SOURCE and _XOPEN_SOURCE version requirements
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 847adc7c..d3b35c2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -109,12 +109,12 @@ if(NOT WIN32) CHECK_SYMBOL_EXISTS(posix_memalign stdlib.h HAVE_POSIX_MEMALIGN_DEFAULT) IF(NOT HAVE_POSIX_MEMALIGN_DEFAULT) SET(OLD_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS}) - SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700") + SET(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500") CHECK_SYMBOL_EXISTS(posix_memalign stdlib.h HAVE_POSIX_MEMALIGN_POSIX) IF(NOT HAVE_POSIX_MEMALIGN_POSIX) SET(CMAKE_REQUIRED_FLAGS ${OLD_REQUIRED_FLAGS}) ELSE() - ADD_DEFINITIONS(-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700) + ADD_DEFINITIONS(-D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500) ENDIF() ENDIF() UNSET(OLD_REQUIRED_FLAGS) |