mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
This commit is contained in:
commit
c07fcbb698
3 changed files with 6 additions and 2 deletions
|
@ -2115,7 +2115,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
|
||||
|
@ -2165,7 +2165,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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue