]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport of AMK's checkin 2.52:
authorThomas Wouters <thomas@python.org>
Mon, 16 Jul 2001 16:03:31 +0000 (16:03 +0000)
committerThomas Wouters <thomas@python.org>
Mon, 16 Jul 2001 16:03:31 +0000 (16:03 +0000)
[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.

Modules/selectmodule.c

index 31ac9b0fd12f1c9cd5d40885a4dcdea5485f386e..c6e4b86ade03156251b8af87760b8328d2004d16 100644 (file)
 #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