diff options
author | Jakub Hrozek <jakub.hrozek@gmail.com> | 2014-08-13 09:44:30 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-08-15 10:53:51 +0200 |
commit | bc546d05a93794b1f0f1ef02e96f918533c250c3 (patch) | |
tree | e9a75dbca1fae4bf032b06a1a77247fdd4897ade /ConfigureChecks.cmake | |
parent | baa8b438f76e66531b26a90c02ab11d4e6c09944 (diff) | |
download | socket_wrapper-bc546d05a93794b1f0f1ef02e96f918533c250c3.tar.gz socket_wrapper-bc546d05a93794b1f0f1ef02e96f918533c250c3.tar.xz socket_wrapper-bc546d05a93794b1f0f1ef02e96f918533c250c3.zip |
Define _GNU_SOURCE on one place only.
There were several _GNU_SOURCE definitions scaterred in the build
system. This patch always adds -D_GNU_SOURCE to the CFLAGS if building
on a UNIX platform.
Signed-off-by: Jakub Hrozek <jakub.hrozek@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index df65411..fb73449 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -61,9 +61,7 @@ check_function_exists(snprintf HAVE_SNPRINTF) check_function_exists(signalfd HAVE_SIGNALFD) check_function_exists(eventfd HAVE_EVENTFD) check_function_exists(timerfd_create HAVE_TIMERFD_CREATE) -set(CMAKE_REQUIRED_FLAGS -D_GNU_SOURCE) check_function_exists(bindresvport HAVE_BINDRESVPORT) -set(CMAKE_REQUIRED_FLAGS) if (UNIX) |