diff options
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/CMakeLists.txt | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 30810405b..02661816a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -319,6 +319,7 @@ endif(CMAKE_BUILD_TYPE STREQUAL "DEBUG" OR CMAKE_BUILD_TYPE STREQUAL "RELWITHDEB check_include_file(sys/types.h HAVE_SYS_TYPES_H) check_include_file(strings.h HAVE_STRINGS_H) check_include_file(sys/select.h HAVE_SYS_SELECT_H) +check_include_file(sys/eventfd.h HAVE_SYS_EVENTFD_H) # Check for the existance of the following functions check_function_exists(gethostbyname HAVE_GETHOSTBYNAME) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2255b317c..f02a527e1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -11,12 +11,12 @@ if(WIN32) else(WIN32) append_to_list(SRC_SRCS threadengines/threadengine_pthread.cpp) # If we have eventfd, use it - if(HAVE_EVENTFD) + if(HAVE_EVENTFD AND HAVE_SYS_EVENTFD_H) append_to_list(SRC_SRCS socketengines/socketengine_eventfd.cpp) # Else fall back to pipe - else(HAVE_EVENTFD) + else(HAVE_EVENTFD AND HAVE_SYS_EVENTFD_H) append_to_list(SRC_sRCS socketengines/socketengine_pipe.cpp) - endif(HAVE_EVENTFD) + endif(HAVE_EVENTFD AND HAVE_SYS_EVENTFD_H) endif(WIN32) sort_list(SRC_SRCS) |