summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m47
1 files changed, 2 insertions, 5 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index e2e3951..531568d 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -629,20 +629,17 @@ dnl # LIBXS_CHECK_POLLER_EPOLL([action-if-found], [action-if-not-found])
dnl # Checks epoll polling system #
dnl ################################################################################
AC_DEFUN([LIBXS_CHECK_POLLER_EPOLL], [{
- AC_RUN_IFELSE(
+ AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
[
#include <sys/epoll.h>
],
[[
struct epoll_event t_ev;
-int r;
-r = epoll_create(10);
-return(r < 0);
+epoll_create(10);
]]
)],
[libxs_cv_have_poller_epoll="yes" ; $1],
- [libxs_cv_have_poller_epoll="no" ; $2],
[libxs_cv_have_poller_epoll="no" ; $2])
}])