[Python-checkins] python/dist/src/Modules selectmodule.c,2.75,2.76
mondragon at users.sourceforge.net
mondragon at users.sourceforge.net
Sun Mar 21 18:45:44 EST 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26224/Modules
Modified Files:
selectmodule.c
Log Message:
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Fixes SF Bug #850981
Index: selectmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/selectmodule.c,v
retrieving revision 2.75
retrieving revision 2.76
diff -C2 -d -r2.75 -r2.76
*** selectmodule.c 12 Oct 2003 19:09:37 -0000 2.75
--- selectmodule.c 21 Mar 2004 23:45:42 -0000 2.76
***************
*** 319,323 ****
}
! #ifdef HAVE_POLL
/*
* poll() support
--- 319,323 ----
}
! #if defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)
/*
* poll() support
***************
*** 613,617 ****
return (PyObject *)rv;
}
! #endif /* HAVE_POLL */
PyDoc_STRVAR(select_doc,
--- 613,617 ----
return (PyObject *)rv;
}
! #endif /* HAVE_POLL && !HAVE_BROKEN_POLL */
PyDoc_STRVAR(select_doc,
***************
*** 640,646 ****
static PyMethodDef select_methods[] = {
{"select", select_select, METH_VARARGS, select_doc},
! #ifdef HAVE_POLL
{"poll", select_poll, METH_VARARGS, poll_doc},
! #endif /* HAVE_POLL */
{0, 0}, /* sentinel */
};
--- 640,646 ----
static PyMethodDef select_methods[] = {
{"select", select_select, METH_VARARGS, select_doc},
! #if defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)
{"poll", select_poll, METH_VARARGS, poll_doc},
! #endif /* HAVE_POLL && !HAVE_BROKEN_POLL */
{0, 0}, /* sentinel */
};
***************
*** 661,665 ****
Py_INCREF(SelectError);
PyModule_AddObject(m, "error", SelectError);
! #ifdef HAVE_POLL
poll_Type.ob_type = &PyType_Type;
PyModule_AddIntConstant(m, "POLLIN", POLLIN);
--- 661,665 ----
Py_INCREF(SelectError);
PyModule_AddObject(m, "error", SelectError);
! #if defined(HAVE_POLL) && !defined(HAVE_BROKEN_POLL)
poll_Type.ob_type = &PyType_Type;
PyModule_AddIntConstant(m, "POLLIN", POLLIN);
***************
*** 685,688 ****
PyModule_AddIntConstant(m, "POLLMSG", POLLMSG);
#endif
! #endif /* HAVE_POLL */
}
--- 685,688 ----
PyModule_AddIntConstant(m, "POLLMSG", POLLMSG);
#endif
! #endif /* HAVE_POLL && !HAVE_BROKEN_POLL */
}
More information about the Python-checkins
mailing list