1
# DP: Fix build failure on hurd, working around poll() on systems
2
# DP: on which it returns an error on invalid FDs.
4
--- a/Modules/selectmodule.c
5
+++ b/Modules/selectmodule.c
8
static PyMethodDef select_methods[] = {
9
{"select", select_select, METH_VARARGS, select_doc},
11
+#if defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)
12
{"poll", select_poll, METH_NOARGS, poll_doc},
13
#endif /* HAVE_POLL */
14
{0, 0}, /* sentinel */
16
Py_INCREF(SelectError);
17
PyModule_AddObject(m, "error", SelectError);
19
-#if defined(HAVE_POLL)
20
+#if defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)
22
if (select_have_broken_poll()) {
23
if (PyObject_DelAttrString(m, "poll") == -1) {