From 3e017816541cb110cd3f1c8858fcd891cc98d63f Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Fri, 13 Jul 2012 16:37:53 +1000 Subject: [PATCH] Add support for some newer versions of glibc which provide the epoll_create1 function but always fail with ENOSYS. --- asio/include/asio/detail/impl/epoll_reactor.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asio/include/asio/detail/impl/epoll_reactor.ipp b/asio/include/asio/detail/impl/epoll_reactor.ipp index 1a58b72c..9f968362 100644 --- a/asio/include/asio/detail/impl/epoll_reactor.ipp +++ b/asio/include/asio/detail/impl/epoll_reactor.ipp @@ -465,7 +465,7 @@ int epoll_reactor::do_epoll_create() 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)