Commit c71375ea authored by m's avatar m

Fix: Case where system library has epoll but kernel does not support it.

parent c4f22408
...@@ -629,17 +629,20 @@ dnl # LIBZMQ_CHECK_POLLER_EPOLL([action-if-found], [action-if-not-found]) ...@@ -629,17 +629,20 @@ dnl # LIBZMQ_CHECK_POLLER_EPOLL([action-if-found], [action-if-not-found])
dnl # Checks epoll polling system # dnl # Checks epoll polling system #
dnl ################################################################################ dnl ################################################################################
AC_DEFUN([LIBZMQ_CHECK_POLLER_EPOLL], [{ AC_DEFUN([LIBZMQ_CHECK_POLLER_EPOLL], [{
AC_LINK_IFELSE( AC_RUN_IFELSE(
[AC_LANG_PROGRAM( [AC_LANG_PROGRAM(
[ [
#include <sys/epoll.h> #include <sys/epoll.h>
], ],
[[ [[
struct epoll_event t_ev; struct epoll_event t_ev;
epoll_create(10); int r;
r = epoll_create(10);
return(r < 0);
]] ]]
)], )],
[libzmq_cv_have_poller_epoll="yes" ; $1], [libzmq_cv_have_poller_epoll="yes" ; $1],
[libzmq_cv_have_poller_epoll="no" ; $2],
[libzmq_cv_have_poller_epoll="no" ; $2]) [libzmq_cv_have_poller_epoll="no" ; $2])
}]) }])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment