[Python-checkins] CVS: python/dist/src/Modules selectmodule.c,2.51,2.52
A.M. Kuchling
akuchling@users.sourceforge.net
2001年7月14日 13:54:39 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv17054
Modified Files:
selectmodule.c
Log Message:
[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.51
retrieving revision 2.52
diff -C2 -r2.51 -r2.52
*** selectmodule.c 2001年05月21日 03:29:05 2.51
--- selectmodule.c 2001年07月14日 20:54:37 2.52
***************
*** 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