# DP: Fix build failure on hurd, working around poll() on systems # DP: on which it returns an error on invalid FDs. Index: python2.6-2.6.5+20100521/Modules/selectmodule.c =================================================================== --- python2.6-2.6.5+20100521.orig/Modules/selectmodule.c 2010-05-21 16:02:58.343711924 +0200 +++ python2.6-2.6.5+20100521/Modules/selectmodule.c 2010-05-21 16:04:38.644709872 +0200 @@ -1714,7 +1714,7 @@ static PyMethodDef select_methods[] = { {"select", select_select, METH_VARARGS, select_doc}, -#ifdef HAVE_POLL +#if defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL) {"poll", select_poll, METH_NOARGS, poll_doc}, #endif /* HAVE_POLL */ {0, 0}, /* sentinel */ @@ -1738,7 +1738,7 @@ Py_INCREF(SelectError); PyModule_AddObject(m, "error", SelectError); -#if defined(HAVE_POLL) +#if defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL) #ifdef __APPLE__ if (select_have_broken_poll()) { if (PyObject_DelAttrString(m, "poll") == -1) {