Skip to content

Commit 78dafe5

Browse files
authored
Merge pull request #2331 from jimklimov/sol-poller
Problem: polling does not work well OOB in OpenIndiana
2 parents e56bc48 + f881694 commit 78dafe5

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

acinclude.m4

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -986,18 +986,29 @@ AC_DEFUN([LIBZMQ_CHECK_POLLER], [{
986986
])
987987
;;
988988
epoll)
989-
LIBZMQ_CHECK_POLLER_EPOLL_CLOEXEC([
990-
AC_MSG_NOTICE([Using 'epoll' polling system with CLOEXEC])
991-
AC_DEFINE(ZMQ_USE_EPOLL, 1, [Use 'epoll' polling system])
992-
AC_DEFINE(ZMQ_USE_EPOLL_CLOEXEC, 1, [Use 'epoll' polling system with CLOEXEC])
993-
poller_found=1
994-
],[
995-
LIBZMQ_CHECK_POLLER_EPOLL([
996-
AC_MSG_NOTICE([Using 'epoll' polling system with CLOEXEC])
997-
AC_DEFINE(ZMQ_USE_EPOLL, 1, [Use 'epoll' polling system])
998-
poller_found=1
999-
])
1000-
])
989+
case "$host_os" in
990+
solaris*|sunos*)
991+
# Recent illumos and Solaris systems did add epoll()
992+
# syntax, but it does not fully satisfy expectations
993+
# that ZMQ has from Linux systems. Unless you undertake
994+
# to fix the integration, do not disable this exception
995+
# and use select() or poll() on Solarish OSes for now.
996+
AC_MSG_NOTICE([NOT using 'epoll' polling system on '$host_os']) ;;
997+
*)
998+
LIBZMQ_CHECK_POLLER_EPOLL_CLOEXEC([
999+
AC_MSG_NOTICE([Using 'epoll' polling system with CLOEXEC])
1000+
AC_DEFINE(ZMQ_USE_EPOLL, 1, [Use 'epoll' polling system])
1001+
AC_DEFINE(ZMQ_USE_EPOLL_CLOEXEC, 1, [Use 'epoll' polling system with CLOEXEC])
1002+
poller_found=1
1003+
],[
1004+
LIBZMQ_CHECK_POLLER_EPOLL([
1005+
AC_MSG_NOTICE([Using 'epoll' polling system with CLOEXEC])
1006+
AC_DEFINE(ZMQ_USE_EPOLL, 1, [Use 'epoll' polling system])
1007+
poller_found=1
1008+
])
1009+
])
1010+
;;
1011+
esac
10011012
;;
10021013
devpoll)
10031014
LIBZMQ_CHECK_POLLER_DEVPOLL([

0 commit comments

Comments
 (0)