From bfaa8544c887ee9180df0c71aaafc19f467063fe Mon Sep 17 00:00:00 2001 From: rmanfredi Date: Wed, 30 Aug 2006 18:21:51 +0000 Subject: Added I_SYS_POLL and I_POLL since we cannot rely on HAS_POLL being enough to include . git-svn-id: https://dist.svn.sourceforge.net/svnroot/dist/trunk/dist@15 190e5f8e-a817-0410-acf6-e9863daed9af --- mcon/U/d_poll.U | 4 ++-- mcon/U/i_poll.U | 28 ++++++++++++++++++++++++++++ mcon/U/i_syspoll.U | 28 ++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 mcon/U/i_poll.U create mode 100644 mcon/U/i_syspoll.U (limited to 'mcon/U') 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 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 . +?S:. +?C:I_POLL: +?C: This symbol, if defined, indicates that the program may include +?C: . If there is no , then you may check I_SYS_POLL +?C: instead to see whether there is a 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 . +?S:. +?C:I_SYS_POLL: +?C: This symbol, if defined, indicates that the program may include +?C: . When I_POLL is also defined, it's probably safest +?C: to only include . +?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 + -- cgit v1.2.3