Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b8d9032

Browse files
vstinnerkantan2015
andauthored
bpo-28914: Fix compilation of select on Android (#5447)
EPOLL_CLOEXEC is not defined on Android. Co-Authored-By: Wataru Matsumoto <[email protected]>
1 parent 763f094 commit b8d9032

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Modules/selectmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,10 +1307,13 @@ pyepoll_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
13071307
PyErr_SetString(PyExc_ValueError, "negative sizehint");
13081308
return NULL;
13091309
}
1310+
1311+
#ifdef HAVE_EPOLL_CREATE1
13101312
if (flags && flags != EPOLL_CLOEXEC) {
13111313
PyErr_SetString(PyExc_OSError, "invalid flags");
13121314
return NULL;
13131315
}
1316+
#endif
13141317

13151318
return newPyEpoll_Object(type, sizehint, -1);
13161319
}

0 commit comments

Comments
 (0)