From ccf4e64fe7bf788c17ca1a41e456e3b9ecdcb85b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 20 May 2014 20:04:02 +0200 Subject: swrap: Add support for bindresvport(). Signed-off-by: Andreas Schneider Reviewed-by: Michael Adam --- ConfigureChecks.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ConfigureChecks.cmake') 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) -- cgit