diff options
author | Andreas Schneider <asn@samba.org> | 2014-01-28 13:33:23 +0100 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-01-28 14:11:37 +0100 |
commit | dc0023293292d5247a5984e78fc10de9399da5f5 (patch) | |
tree | 9eaba70f3650a616de44739a78898111dd6b8a3a /ConfigureChecks.cmake | |
parent | 95520f672f3cbf311b503d61e2ac9e2a22d209e9 (diff) | |
download | socket_wrapper-dc0023293292d5247a5984e78fc10de9399da5f5.tar.gz socket_wrapper-dc0023293292d5247a5984e78fc10de9399da5f5.tar.xz socket_wrapper-dc0023293292d5247a5984e78fc10de9399da5f5.zip |
src: Add signalfd() to handle stale fds.
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 2d8e690..65f8b1a 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -48,18 +48,13 @@ endif(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW AND NOT OS2) # HEADERS check_include_file(sys/filio.h HAVE_SYS_FILIO_H) +check_include_file(sys/signalfd.h HAVE_SYS_SIGNALFD_H) # FUNCTIONS check_function_exists(strncpy HAVE_STRNCPY) check_function_exists(vsnprintf HAVE_VSNPRINTF) check_function_exists(snprintf HAVE_SNPRINTF) - -if (WIN32) - check_function_exists(_vsnprintf_s HAVE__VSNPRINTF_S) - check_function_exists(_vsnprintf HAVE__VSNPRINTF) - check_function_exists(_snprintf HAVE__SNPRINTF) - check_function_exists(_snprintf_s HAVE__SNPRINTF_S) -endif (WIN32) +check_function_exists(signalfd HAVE_SIGNALFD) if (UNIX) if (NOT LINUX) |