diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-08-30 08:24:36 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-08-30 08:24:36 -0700 |
| commit | 156097e6c602b8f307fad62ed0ca1b4547f6c2d5 (patch) | |
| tree | a1e9fd530b190c8cba1af1eb1729e8aba9880364 | |
| parent | 3df688126be2b4147ae07ba04a584493c966172d (diff) | |
| download | nng-156097e6c602b8f307fad62ed0ca1b4547f6c2d5.tar.gz nng-156097e6c602b8f307fad62ed0ca1b4547f6c2d5.tar.bz2 nng-156097e6c602b8f307fad62ed0ca1b4547f6c2d5.zip | |
fixes #684 CentOS 5 broken -- has epoll but not eventfd
| -rw-r--r-- | CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/CMakeLists.txt | 2 |
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 ) |
