aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2020-07-26 11:49:37 -0700
committerGarrett D'Amore <garrett@damore.org>2020-07-26 11:49:37 -0700
commit166981244eec7699190bf8b70c32ffe99e485b72 (patch)
treed45f79732fc5381fb627a1011c3c07495eee0f29
parent4d7db03fe5371fa81523b6d2bdb2bed1dd23a8c2 (diff)
downloadnng-166981244eec7699190bf8b70c32ffe99e485b72.tar.gz
nng-166981244eec7699190bf8b70c32ffe99e485b72.tar.bz2
nng-166981244eec7699190bf8b70c32ffe99e485b72.zip
fixes #1232 EVFILT_USER is not available on NetBSD
This means that NetBSD and OpenBSD cannot benefit from kqueue, and will need to use poll(). The best answer for those platforms is that someone contribute a working EVFILT_USER implementation.
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 966d396b..3fdafc62 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -333,7 +333,9 @@ else ()
nng_check_sym(backtrace_symbols_fd execinfo.h NNG_HAVE_BACKTRACE)
nng_check_struct_member(msghdr msg_control sys/socket.h NNG_HAVE_MSG_CONTROL)
nng_check_sym(eventfd sys/eventfd.h NNG_HAVE_EVENTFD)
- nng_check_sym(kqueue sys/event.h NNG_HAVE_KQUEUE)
+ # While some systems (NetBSD) have kqueue, our use depends on EVFILT_USER
+ # This means that NetBSD and OpenBSD will be stuck with poll().
+ nng_check_sym(EVFILT_USER 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)
nng_check_sym(epoll_create1 sys/epoll.h NNG_HAVE_EPOLL_CREATE1)