summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-07-14 20:54:37 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-07-14 20:54:37 (GMT)
commit737fbb340e3a1845f52e0b5568bb672dfdfc830b (patch)
treeadb9de09cc7cc6f9e03b1bfb9cccc140d0089f41
parent5a76c44181465060ecde3588491d5c98eb979a1d (diff)
downloadcpython-737fbb340e3a1845f52e0b5568bb672dfdfc830b.zip
cpython-737fbb340e3a1845f52e0b5568bb672dfdfc830b.tar.gz
cpython-737fbb340e3a1845f52e0b5568bb672dfdfc830b.tar.bz2
[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.
-rw-r--r--Modules/selectmodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 31ac9b0..c6e4b86 100644
--- a/Modules/selectmodule.c
+++ b/Modules/selectmodule.c
@@ -21,8 +21,10 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
-#ifdef HAVE_POLL_H
+#if defined(HAVE_POLL_H)
#include <poll.h>
+#elif defined(HAVE_SYS_POLL_H)
+#include <sys/poll.h>
#endif
#ifdef __sgi