From 737fbb340e3a1845f52e0b5568bb672dfdfc830b Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sat, 14 Jul 2001 20:54:37 +0000 Subject: [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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 #endif -#ifdef HAVE_POLL_H +#if defined(HAVE_POLL_H) #include +#elif defined(HAVE_SYS_POLL_H) +#include #endif #ifdef __sgi -- cgit v0.12