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:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user