Diffstat (limited to 'mcon/U/i_systimeb.U')
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
@@ -0,0 +1,55 @@
+?RCS: $Id: i_systimeb.U,v 3.0 1993/08/18 12:08:37 ram Exp $
+?RCS: Copyright (c) 1991-1993, Raphael Manfredi
+?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: $Log: i_systimeb.U,v $
+?RCS: Revision 3.0 1993/08/18 12:08:37 ram
+?RCS: Baseline for dist 3.0 netwide release.
+?X: This unit looks wether <sys/timeb.h> should be included
+?X: or not when using ftime() (for struct timeb definition).
+?X: Force looking for <sys/time.h> for struct timeb.
+?MAKE:i_systimeb: test contains Loc Setvar Findhdr
+?MAKE: -pick add $@ %<
+?S: This variable conditionally defines I_SYS_TIMEB, which indicates
+?S: to the C program that it should include <sys/timeb.h>.
+?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.
+?H:#$i_systimeb I_SYS_TIMEB /**/
+: see where struct timeb is defined
+echo " "
+if $test "$xxx"; then
+ if $contains 'struct timeb' $xxx >/dev/null 2>&1; then
+ echo "You have struct timeb defined in <sys/timeb.h>." >&4
+ echo "Assuming struct timeb is defined in <sys/time.h>." >&4
+echo "No <sys/timeb.h> -- Assuming struct timeb is defined in <sys/time.h>." >&4