diff options
author | Charles-François Natali <cf.natali@gmail.com> | 2013-01-19 11:21:26 (GMT) |
---|---|---|
committer | Charles-François Natali <cf.natali@gmail.com> | 2013-01-19 11:21:26 (GMT) |
commit | 95195b35b84979f9d893d09c594309b4c79d3d56 (patch) | |
tree | 1363e38e30f7bc9e7ee6e540092c920efb5264e6 /Modules | |
parent | 9101e23ff6006d9ede7d46e8c9e7d39e23c2a3c3 (diff) | |
parent | 986a56cefefc9200a0bbebca02bc93f24e4a3eaa (diff) | |
download | cpython-95195b35b84979f9d893d09c594309b4c79d3d56.zip cpython-95195b35b84979f9d893d09c594309b4c79d3d56.tar.gz cpython-95195b35b84979f9d893d09c594309b4c79d3d56.tar.bz2 |
Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/selectmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index ce5ed47..06abcf1 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -2098,7 +2098,7 @@ descriptors can be used."); 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 */ #ifdef HAVE_SYS_DEVPOLL_H @@ -2148,7 +2148,7 @@ PyInit_select(void) 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) { |