aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/CMakeLists.txt2
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index adcd039d..ee05c64b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -441,6 +441,7 @@ else ()
nng_check_sym (backtrace_symbols_fd execinfo.h NNG_HAVE_BACKTRACE)
nng_check_sym (alloca alloca.h NNG_HAVE_ALLOCA)
nng_check_struct_member(msghdr msg_control sys/socket.h NNG_HAVE_MSG_CONTROL)
+ nng_check_sym (eventfd sys/eventfd NNG_HAVE_EVENTFD)
nng_check_sym (kqueue sys/event.h NNG_HAVE_KQUEUE)
nng_check_sym (port_create port.h NNG_HAVE_PORT_CREATE)
nng_check_sym (epoll_create sys/epoll.h NNG_HAVE_EPOLL)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index e59ee5b0..14894db8 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -119,7 +119,7 @@ if (NNG_PLATFORM_POSIX)
set (NNG_SOURCES ${NNG_SOURCES}
platform/posix/posix_pollq_kqueue.c
)
- elseif (NNG_HAVE_EPOLL)
+ elseif (NNG_HAVE_EPOLL AND NNG_HAVE_EVENTFD)
set (NNG_SOURCES ${NNG_SOURCES}
platform/posix/posix_pollq_epoll.c
)