Mercurial > cpython-lru_cache-weakref
diff Modules/selectmodule.c @ 81591:1d33c79d2f6b 2.7
Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
| author | Charles-François Natali <cf.natali@gmail.com> |
|---|---|
| date | Sat, 19 Jan 2013 12:15:56 +0100 |
| parents | d544873d62e9 |
| children | c6c2b216bd14 |
line wrap: on
line diff
--- a/Modules/selectmodule.c Sat Jan 19 12:55:39 2013 +0200 +++ b/Modules/selectmodule.c Sat Jan 19 12:15:56 2013 +0100 @@ -1737,7 +1737,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 */ @@ -1769,7 +1769,7 @@ PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF); #endif -#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) {
