Add support for some newer versions of glibc which provide the epoll_create1

function but always fail with ENOSYS.
This commit is contained in:
Christopher Kohlhoff 2012-07-13 16:37:53 +10:00
parent dffb3d299a
commit 3e01781654

View File

@ -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)