]> granicus.if.org Git - python/commitdiff
Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
authorCharles-François Natali <cf.natali@gmail.com>
Sat, 19 Jan 2013 11:19:10 +0000 (12:19 +0100)
committerCharles-François Natali <cf.natali@gmail.com>
Sat, 19 Jan 2013 11:19:10 +0000 (12:19 +0100)
Patch by Jeffrey Armstrong.

Misc/ACKS
Misc/NEWS
Modules/selectmodule.c

index 3b8c7f29502688ab874a21e7316b2a5c519fc280..6e7dfe4a8de11e3f95edca6417c71b8bb27c6780 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -41,6 +41,7 @@ Jon Anglin
 Heidi Annexstad
 Éric Araujo
 Alicia Arlen
+Jeffrey Armstrong
 Jason Asbahr
 David Ascher
 Chris AtLee
index 19a3e9330bc690e5351b5a8f5f4cdbc9d5045071..62fe05d50cb711b338fdb4486c8cde5e032b8198 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -849,6 +849,9 @@ Tests
 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 #16593: Have BSD 'make -s' do the right thing, thanks to Daniel Shahaf
index 3f846d807ae59b274370e9b808fc5eb57abfc05b..7863aaa4bbd1aab5fda9758efbfa52d03520b5b2 100644 (file)
@@ -1743,7 +1743,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 */
     {0,         0},     /* sentinel */
@@ -1788,7 +1788,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) {