From: Thomas Wouters Date: Mon, 16 Jul 2001 16:03:31 +0000 (+0000) Subject: Backport of AMK's checkin 2.52: X-Git-Tag: v2.1.1~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09fdab3e6fbb9bf981a3a81bbf21d9d4c9828593;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 31ac9b0fd12f..c6e4b86ade03 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -21,8 +21,10 @@ #ifdef HAVE_UNISTD_H #include #endif -#ifdef HAVE_POLL_H +#if defined(HAVE_POLL_H) #include +#elif defined(HAVE_SYS_POLL_H) +#include #endif #ifdef __sgi