This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
#7217: config.h comments for HAS_POLL incorrect
authorDavid Dyck <david.dyck@fluke.com>
Mon, 2 Jul 2001 14:58:27 +0000 (07:58 -0700)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Thu, 27 Jul 2006 15:33:07 +0000 (15:33 +0000)
http://rt.perl.org/rt3/Ticket/Display.html?id=7217
Subject: config.h comments for HAS_POLL incorrect

p4raw-id: //depot/perl@28625

config_h.SH

index 95b8230..0db5463 100644 (file)
@@ -373,13 +373,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_pipe HAS_PIPE              /**/
 
-/* HAS_POLL:
- *     This symbol, if defined, indicates that the poll routine is
- *     available to poll active file descriptors. You may safely
- *     include <poll.h> when this symbol is defined.
- */
-#$d_poll HAS_POLL              /**/
-
 /* HAS_READDIR:
  *     This symbol, if defined, indicates that the readdir routine is
  *     available to read directory entries. You may have to include
@@ -3504,7 +3497,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 
 /* I_POLL:
  *     This symbol, if defined, indicates that <poll.h> exists and
- *     should be included.
+ *     should be included. (see also HAS_POLL)
  */
 #$i_poll       I_POLL          /**/
 
@@ -4425,5 +4418,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
 #define M_VOID                 /* Xenix strikes again */
 #endif
 
+/* HAS_POLL:
+ *     This symbol, if defined, indicates that the poll routine is
+ *     available to poll active file descriptors. You may safely
+ *     include <poll.h> when both this symbol *and* I_POLL are defined.
+ */
+#$d_poll HAS_POLL              /**/
+
 #endif
 !GROK!THIS!