summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jakub.hrozek@gmail.com>2014-08-13 09:44:30 +0200
committerAndreas Schneider <asn@samba.org>2014-08-15 10:53:51 +0200
commitbc546d05a93794b1f0f1ef02e96f918533c250c3 (patch)
treee9a75dbca1fae4bf032b06a1a77247fdd4897ade /src
parentbaa8b438f76e66531b26a90c02ab11d4e6c09944 (diff)
downloadsocket_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 'src')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b1ab95f..4b22d77 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -2,11 +2,6 @@ project(libsocket_wrapper C)
include_directories(${CMAKE_BINARY_DIR})
-set_source_files_properties(socket_wrapper.c
- PROPERTIES
- COMPILE_DEFINITIONS
- _GNU_SOURCE)
-
add_library(socket_wrapper SHARED socket_wrapper.c)
target_link_libraries(socket_wrapper ${SWRAP_REQUIRED_LIBRARIES})