diff options
author | Manoj Srivastava <srivasta@debian.org> | 2003-12-01 17:11:15 +0000 |
---|---|---|
committer | Manoj Srivastava <srivasta@debian.org> | 2003-12-01 17:11:15 +0000 |
commit | 371472d9fb6a936149b105a6563a0550d35bdf1a (patch) | |
tree | 6d23751e44a7dddf4e29918551f1ea0513352622 /mcon/U/i_systimeb.U |
Initial import of upstream branch
Initial import of upstream branch
git-archimport-id: srivasta@debian.org--2003-primary/dist--upstream--3.70--base-0
Diffstat (limited to 'mcon/U/i_systimeb.U')
-rw-r--r-- | mcon/U/i_systimeb.U | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/mcon/U/i_systimeb.U b/mcon/U/i_systimeb.U new file mode 100644 index 0000000..0e17f68 --- /dev/null +++ b/mcon/U/i_systimeb.U @@ -0,0 +1,55 @@ +?RCS: $Id: i_systimeb.U,v 3.0 1993/08/18 12:08:37 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, 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 3.0. +?RCS: +?RCS: $Log: i_systimeb.U,v $ +?RCS: Revision 3.0 1993/08/18 12:08:37 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?X: +?X: This unit looks wether <sys/timeb.h> should be included +?X: or not when using ftime() (for struct timeb definition). +?X: +?X: Force looking for <sys/time.h> for struct timeb. +?X:INC: i_systime +?MAKE:i_systimeb: test contains Loc Setvar Findhdr +?MAKE: -pick add $@ %< +?S:i_systimeb: +?S: This variable conditionally defines I_SYS_TIMEB, which indicates +?S: to the C program that it should include <sys/timeb.h>. +?S:. +?C:I_SYS_TIMEB (I_SYSTIMEB): +?C: This symbol, if defined, indicates to the C program that it should +?C: include <sys/timeb.h>, in order to define struct timeb (some systems +?C: define this in <sys/time.h>). This is useful when using ftime(). +?C: You should include <sys/time.h> if I_SYS_TIMEB is not defined, +?C: nor is I_SYS_TIME. +?C:. +?H:#$i_systimeb I_SYS_TIMEB /**/ +?H:. +?T:xxx +?LINT:set i_systimeb +: see where struct timeb is defined +echo " " +xxx=`./findhdr sys/timeb.h` +if $test "$xxx"; then + if $contains 'struct timeb' $xxx >/dev/null 2>&1; then + val="$define" + echo "You have struct timeb defined in <sys/timeb.h>." >&4 + else + val="$undef" + echo "Assuming struct timeb is defined in <sys/time.h>." >&4 + fi +else + val="$undef" +echo "No <sys/timeb.h> -- Assuming struct timeb is defined in <sys/time.h>." >&4 +fi +set i_systimeb +eval $setvar + |