[Python-checkins] CVS: python/dist/src/Modules selectmodule.c,2.50.4.1,2.50.4.2
Thomas Wouters
twouters@users.sourceforge.net
Mon, 16 Jul 2001 09:03:33 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv28393/Modules
Modified Files:
Tag: release21-maint
selectmodule.c
Log Message:
Backport of AMK's checkin 2.52:
[Bug #438050]
Include sys/poll.h if it was found by the configure script. The OpenGroup
spec says poll.h is the correct header file to use, so that file is
preferred.
Index: selectmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/selectmodule.c,v
retrieving revision 2.50.4.1
retrieving revision 2.50.4.2
diff -C2 -r2.50.4.1 -r2.50.4.2
*** selectmodule.c 2001/06/27 13:12:47 2.50.4.1
--- selectmodule.c 2001/07/16 16:03:31 2.50.4.2
***************
*** 22,27 ****
#include <unistd.h>
#endif
! #ifdef HAVE_POLL_H
#include <poll.h>
#endif
--- 22,29 ----
#include <unistd.h>
#endif
! #if defined(HAVE_POLL_H)
#include <poll.h>
+ #elif defined(HAVE_SYS_POLL_H)
+ #include <sys/poll.h>
#endif