do poll() emulation unless HAS_POLL && I_POLL
Gurusamy Sarathy [Sat, 20 Feb 1999 00:27:01 +0000 (00:27 +0000)]
p4raw-id: //depot/perl@2989

ext/IO/poll.h

index d17edff..c5cdd7f 100644 (file)
 #ifndef POLL_H
 #  define POLL_H
 
-#if defined(I_POLL) || defined(POLLWRBAND)
+#if (defined(HAS_POLL) && defined(I_POLL)) || defined(POLLWRBAND)
 #  include <poll.h>
-#  ifndef HAS_POLL
-#    define HAS_POLL
-#  endif
 #else
 #ifdef HAS_SELECT