From a037ef8f32200b26968e77344bcfb963251fa8b9 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 10 Aug 2001 09:43:22 +0000 Subject: Import cvs-1.11.1p1 onto vendor branch --- contrib/cvs/lib/system.h | 43 +++++++++++++------------------------------ 1 file changed, 13 insertions(+), 30 deletions(-) (limited to 'contrib/cvs/lib/system.h') diff --git a/contrib/cvs/lib/system.h b/contrib/cvs/lib/system.h index 8beedf0..2c3adbd 100644 --- a/contrib/cvs/lib/system.h +++ b/contrib/cvs/lib/system.h @@ -156,16 +156,7 @@ off_t lseek (); char *getcwd (); #endif -#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif +#include "xtime.h" #ifdef HAVE_IO_H #include @@ -175,26 +166,6 @@ char *getcwd (); #include #endif -#ifdef timezone -#undef timezone /* needed for sgi */ -#endif - -#ifdef HAVE_SYS_TIMEB_H -#include -#else -struct timeb { - time_t time; /* Seconds since the epoch */ - unsigned short millitm; /* Field not used */ - short timezone; - short dstflag; /* Field not used */ -}; -#endif - -#if !defined(HAVE_FTIME) && !defined(HAVE_TIMEZONE) -#if !defined(timezone) -extern long timezone; -#endif -#endif /* @@ -429,6 +400,10 @@ extern int errno; #define CVS_FOPEN fopen #endif +#ifndef CVS_FDOPEN +#define CVS_FDOPEN fdopen +#endif + #ifndef CVS_MKDIR #define CVS_MKDIR mkdir #endif @@ -437,6 +412,14 @@ extern int errno; #define CVS_OPEN open #endif +#ifndef CVS_READDIR +#define CVS_READDIR readdir +#endif + +#ifndef CVS_CLOSEDIR +#define CVS_CLOSEDIR closedir +#endif + #ifndef CVS_OPENDIR #define CVS_OPENDIR opendir #endif -- cgit v1.1