summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-05-13 01:56:17 +0200
committerMichael Adam <obnox@samba.org>2014-05-21 14:42:41 +0200
commit0911cab2c0e18ee9e0c130ec7ddbbf457345d4f0 (patch)
treea7c044571cfa930868df38dde58fbfc45d099eb5 /src
parentb37783b6a6503b84363877023cb37618e7504d56 (diff)
downloadsocket_wrapper-0911cab2c0e18ee9e0c130ec7ddbbf457345d4f0.tar.gz
socket_wrapper-0911cab2c0e18ee9e0c130ec7ddbbf457345d4f0.tar.xz
socket_wrapper-0911cab2c0e18ee9e0c130ec7ddbbf457345d4f0.zip
cmake: Build swrap with _GNU_SOURCE.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 95a691f..b1ab95f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,6 +1,12 @@
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})