1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 16:03:15 +02:00

Better check for eventfd.

This commit is contained in:
Naram Qashat
2010-08-21 18:52:12 -04:00
parent 32c31f25ec
commit 88d3338fdd
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -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)
+3 -3
View File
@@ -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)