mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 16:06:09 +00:00
Merge pull request #2331 from jimklimov/sol-poller
Problem: polling does not work well OOB in OpenIndiana
This commit is contained in:
commit
78dafe5c7c
35
acinclude.m4
35
acinclude.m4
@ -986,18 +986,29 @@ AC_DEFUN([LIBZMQ_CHECK_POLLER], [{
|
|||||||
])
|
])
|
||||||
;;
|
;;
|
||||||
epoll)
|
epoll)
|
||||||
LIBZMQ_CHECK_POLLER_EPOLL_CLOEXEC([
|
case "$host_os" in
|
||||||
AC_MSG_NOTICE([Using 'epoll' polling system with CLOEXEC])
|
solaris*|sunos*)
|
||||||
AC_DEFINE(ZMQ_USE_EPOLL, 1, [Use 'epoll' polling system])
|
# Recent illumos and Solaris systems did add epoll()
|
||||||
AC_DEFINE(ZMQ_USE_EPOLL_CLOEXEC, 1, [Use 'epoll' polling system with CLOEXEC])
|
# syntax, but it does not fully satisfy expectations
|
||||||
poller_found=1
|
# that ZMQ has from Linux systems. Unless you undertake
|
||||||
],[
|
# to fix the integration, do not disable this exception
|
||||||
LIBZMQ_CHECK_POLLER_EPOLL([
|
# and use select() or poll() on Solarish OSes for now.
|
||||||
AC_MSG_NOTICE([Using 'epoll' polling system with CLOEXEC])
|
AC_MSG_NOTICE([NOT using 'epoll' polling system on '$host_os']) ;;
|
||||||
AC_DEFINE(ZMQ_USE_EPOLL, 1, [Use 'epoll' polling system])
|
*)
|
||||||
poller_found=1
|
LIBZMQ_CHECK_POLLER_EPOLL_CLOEXEC([
|
||||||
])
|
AC_MSG_NOTICE([Using 'epoll' polling system with CLOEXEC])
|
||||||
])
|
AC_DEFINE(ZMQ_USE_EPOLL, 1, [Use 'epoll' polling system])
|
||||||
|
AC_DEFINE(ZMQ_USE_EPOLL_CLOEXEC, 1, [Use 'epoll' polling system with CLOEXEC])
|
||||||
|
poller_found=1
|
||||||
|
],[
|
||||||
|
LIBZMQ_CHECK_POLLER_EPOLL([
|
||||||
|
AC_MSG_NOTICE([Using 'epoll' polling system with CLOEXEC])
|
||||||
|
AC_DEFINE(ZMQ_USE_EPOLL, 1, [Use 'epoll' polling system])
|
||||||
|
poller_found=1
|
||||||
|
])
|
||||||
|
])
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
devpoll)
|
devpoll)
|
||||||
LIBZMQ_CHECK_POLLER_DEVPOLL([
|
LIBZMQ_CHECK_POLLER_DEVPOLL([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user