diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-02-09 00:34:14 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-09 00:34:14 -0500 |
commit | cb5ee2654064d1723d681c2dc2acfad2ba61f96e (patch) | |
tree | 8c2a273e185393320b031dfa31f3354d3c5057a3 | |
parent | d402841b54d89289c3c2c3c5c1c005fc3d99ee84 (diff) | |
parent | b5f6f43095fc556cfc4b909bd810059f94967a68 (diff) | |
download | rneovim-cb5ee2654064d1723d681c2dc2acfad2ba61f96e.tar.gz rneovim-cb5ee2654064d1723d681c2dc2acfad2ba61f96e.tar.bz2 rneovim-cb5ee2654064d1723d681c2dc2acfad2ba61f96e.zip |
Merge pull request #4094 from justinmk/_GNU_SOURCE
cmake: Linux: define _GNU_SOURCE.
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0409c8292e..c6ed0f0cdf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -254,6 +254,10 @@ if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_NAME STREQUAL "Linux") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-undefined") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined") set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined") + + # For O_CLOEXEC, O_DIRECTORY, and O_NOFOLLOW flags on older systems + # (pre POSIX.1-2008: glibc 2.11 and earlier). #4042 + add_definitions(-D_GNU_SOURCE) endif() if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_NAME STREQUAL "SunOS") |