|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r79521 - trunk/boost/asio/detail/impl
From: chris_at_[hidden]
Date: 2012-07-15 00:22:29
Author: chris_kohlhoff
Date: 2012-07-15 00:22:28 EDT (Sun, 15 Jul 2012)
New Revision: 79521
URL: http://svn.boost.org/trac/boost/changeset/79521
Log:
Add support for some newer versions of glibc which provide the epoll_create1 function but always fail with ENOSYS. Refs #7012
Text files modified:
trunk/boost/asio/detail/impl/epoll_reactor.ipp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/asio/detail/impl/epoll_reactor.ipp
==============================================================================
--- trunk/boost/asio/detail/impl/epoll_reactor.ipp (original)
+++ trunk/boost/asio/detail/impl/epoll_reactor.ipp 2012-07-15 00:22:28 EDT (Sun, 15 Jul 2012)
@@ -466,7 +466,7 @@
errno = EINVAL;
#endif // defined(EPOLL_CLOEXEC)
- if (fd == -1 && errno == EINVAL)
+ if (fd == -1 && (errno == EINVAL || errno == ENOSYS))
{
fd = epoll_create(epoll_size);
if (fd != -1)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk