summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-10-22 12:45:55 -0400
committerAdam <Adam@anope.org>2011-10-22 12:45:55 -0400
commitf4a0bdd54d80e740026b05c63ada4e71650a1959 (patch)
treee169e927c19fdfe1b32405fe1c1ec123cc4e479f /src
parent3e2ac3640d186004798269e6ca89938cb1da6f73 (diff)
Added our own eventfd test for openvz machines which have eventfd but can not be used
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 292da5a3f..3c21ba477 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 AND HAVE_SYS_EVENTFD_H)
+ if(HAVE_EVENTFD)
append_to_list(SRC_SRCS socketengines/pipeengine_eventfd.cpp)
# Else fall back to pipe
- else(HAVE_EVENTFD AND HAVE_SYS_EVENTFD_H)
+ else(HAVE_EVENTFD)
append_to_list(SRC_SRCS socketengines/pipeengine_pipe.cpp)
- endif(HAVE_EVENTFD AND HAVE_SYS_EVENTFD_H)
+ endif(HAVE_EVENTFD)
endif(WIN32)
if(HAVE_EPOLL)