summaryrefslogtreecommitdiffstats
path: root/Modules/selectmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r--Modules/selectmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index f2f5cc8..3b7713a 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -1307,10 +1307,13 @@ pyepoll_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
PyErr_SetString(PyExc_ValueError, "negative sizehint");
return NULL;
}
+
+#ifdef HAVE_EPOLL_CREATE1
if (flags && flags != EPOLL_CLOEXEC) {
PyErr_SetString(PyExc_OSError, "invalid flags");
return NULL;
}
+#endif
return newPyEpoll_Object(type, sizehint, -1);
}