summaryrefslogtreecommitdiff
path: root/mcon/U
diff options
context:
space:
mode:
authorrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2006-08-30 18:21:51 +0000
committerrmanfredi <rmanfredi@2592e710-e01b-42a5-8df0-11608a6cc53d>2006-08-30 18:21:51 +0000
commitc1975cdfe395d49167ad86a49f14de00dcac0d66 (patch)
treec72b226fac4673cff2e283e1e0f472a1a0b8e106 /mcon/U
parentff478d6baf609486a8c17903f8b4d55c812b04bc (diff)
Added I_SYS_POLL and I_POLL since we cannot rely on HAS_POLL being enough
to include <poll.h>. git-svn-id: svn://svn.code.sf.net/p/dist/code/trunk/dist@15 2592e710-e01b-42a5-8df0-11608a6cc53d
Diffstat (limited to 'mcon/U')
-rw-r--r--mcon/U/d_poll.U4
-rw-r--r--mcon/U/i_poll.U28
-rw-r--r--mcon/U/i_syspoll.U28
3 files changed, 58 insertions, 2 deletions
diff --git a/mcon/U/d_poll.U b/mcon/U/d_poll.U
index f07ef0e..54db1b8 100644
--- a/mcon/U/d_poll.U
+++ b/mcon/U/d_poll.U
@@ -24,8 +24,8 @@
?S:.
?C:HAS_POLL :
?C: This symbol, if defined, indicates that the poll routine is
-?C: available to poll active file descriptors. You may safely
-?C: include <poll.h> when this symbol is defined.
+?C: available to poll active file descriptors. Please check I_POLL and
+?C: I_SYS_POLL to know which header should be included as well.
?C:.
?H:#$d_poll HAS_POLL /**/
?H:.
diff --git a/mcon/U/i_poll.U b/mcon/U/i_poll.U
new file mode 100644
index 0000000..162f4cb
--- /dev/null
+++ b/mcon/U/i_poll.U
@@ -0,0 +1,28 @@
+?RCS: $Id$
+?RCS:
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:i_poll: Inhdr
+?MAKE: -pick add $@ %<
+?S:i_poll:
+?S: This variable conditionally defines the I_POLL symbol, which
+?S: indicates to the C program that it should include <poll.h>.
+?S:.
+?C:I_POLL:
+?C: This symbol, if defined, indicates that the program may include
+?C: <poll.h>. If there is no <poll.h>, then you may check I_SYS_POLL
+?C: instead to see whether there is a <sys/poll.h> to include.
+?C:.
+?H:#$i_poll I_POLL /**/
+?H:.
+?LINT:set i_poll
+: see if there is a poll.h file
+set poll.h i_poll
+eval $inhdr
+
diff --git a/mcon/U/i_syspoll.U b/mcon/U/i_syspoll.U
new file mode 100644
index 0000000..c284143
--- /dev/null
+++ b/mcon/U/i_syspoll.U
@@ -0,0 +1,28 @@
+?RCS: $Id$
+?RCS:
+?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
+?RCS:
+?RCS: You may redistribute only under the terms of the Artistic Licence,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic Licence; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?RCS:
+?MAKE:i_syspoll: Inhdr
+?MAKE: -pick add $@ %<
+?S:i_syspoll:
+?S: This variable conditionally defines the I_SYS_POLL symbol, which
+?S: indicates to the C program that it should include <sys/poll.h>.
+?S:.
+?C:I_SYS_POLL:
+?C: This symbol, if defined, indicates that the program may include
+?C: <sys/poll.h>. When I_POLL is also defined, it's probably safest
+?C: to only include <poll.h>.
+?C:.
+?H:#$i_syspoll I_SYS_POLL /**/
+?H:.
+?LINT:set i_syspoll
+: see if there is a sys/poll.h file
+set sys/poll.h i_syspoll
+eval $inhdr
+