mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
This commit is contained in:
parent
74f49ab28b
commit
a41cf29c0b
3 changed files with 6 additions and 2 deletions
|
@ -35,6 +35,7 @@ Oliver Andrich
|
||||||
Ross Andrus
|
Ross Andrus
|
||||||
Heidi Annexstad
|
Heidi Annexstad
|
||||||
Éric Araujo
|
Éric Araujo
|
||||||
|
Jeffrey Armstrong
|
||||||
Jason Asbahr
|
Jason Asbahr
|
||||||
David Ascher
|
David Ascher
|
||||||
Chris AtLee
|
Chris AtLee
|
||||||
|
|
|
@ -700,6 +700,9 @@ Tests
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #16953: Fix socket module compilation on platforms with
|
||||||
|
HAVE_BROKEN_POLL. Patch by Jeffrey Armstrong.
|
||||||
|
|
||||||
- Issue #16836: Enable IPv6 support even if IPv6 is disabled on the build host.
|
- Issue #16836: Enable IPv6 support even if IPv6 is disabled on the build host.
|
||||||
|
|
||||||
- Issue #15923: fix a mistake in asdl_c.py that resulted in a TypeError after
|
- Issue #15923: fix a mistake in asdl_c.py that resulted in a TypeError after
|
||||||
|
|
|
@ -1737,7 +1737,7 @@ descriptors can be used.");
|
||||||
|
|
||||||
static PyMethodDef select_methods[] = {
|
static PyMethodDef select_methods[] = {
|
||||||
{"select", select_select, METH_VARARGS, select_doc},
|
{"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},
|
{"poll", select_poll, METH_NOARGS, poll_doc},
|
||||||
#endif /* HAVE_POLL */
|
#endif /* HAVE_POLL */
|
||||||
{0, 0}, /* sentinel */
|
{0, 0}, /* sentinel */
|
||||||
|
@ -1769,7 +1769,7 @@ initselect(void)
|
||||||
PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF);
|
PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_POLL)
|
#if defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
if (select_have_broken_poll()) {
|
if (select_have_broken_poll()) {
|
||||||
if (PyObject_DelAttrString(m, "poll") == -1) {
|
if (PyObject_DelAttrString(m, "poll") == -1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue