diff options
| author | Andreas Schneider <asn@samba.org> | 2014-05-20 20:04:02 +0200 |
|---|---|---|
| committer | Michael Adam <obnox@samba.org> | 2014-05-31 12:32:09 +0200 |
| commit | ccf4e64fe7bf788c17ca1a41e456e3b9ecdcb85b (patch) | |
| tree | 54c3f33d0aaa03a4b17fff1cd12a9670bbbad838 /ConfigureChecks.cmake | |
| parent | b124fcb2dfb6193f198bd47891c3286e527bd530 (diff) | |
| download | socket_wrapper-ccf4e64fe7bf788c17ca1a41e456e3b9ecdcb85b.tar.gz socket_wrapper-ccf4e64fe7bf788c17ca1a41e456e3b9ecdcb85b.tar.xz socket_wrapper-ccf4e64fe7bf788c17ca1a41e456e3b9ecdcb85b.zip | |
swrap: Add support for bindresvport().
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'ConfigureChecks.cmake')
| -rw-r--r-- | ConfigureChecks.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 3a31f50..44914f0 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -60,6 +60,10 @@ 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) if (NOT LINUX) |
