diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 2001-09-28 22:45:44 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 2001-09-28 22:45:44 +0000 |
commit | ba1dc3b9e4f3402b435edad6e14f34a79f4748fa (patch) | |
tree | 8e10de858a180b8b10c3a0774229ddc53ac99b00 /gnu/usr.bin/cvs/lib/system.h | |
parent | 79da6d2ec924cfdf612531607a5ae97264df2270 (diff) |
Latest from Cyclic Software
Diffstat (limited to 'gnu/usr.bin/cvs/lib/system.h')
-rw-r--r-- | gnu/usr.bin/cvs/lib/system.h | 43 |
1 files changed, 13 insertions, 30 deletions
diff --git a/gnu/usr.bin/cvs/lib/system.h b/gnu/usr.bin/cvs/lib/system.h index 8beedf0eda7..2c3adbd45d3 100644 --- a/gnu/usr.bin/cvs/lib/system.h +++ b/gnu/usr.bin/cvs/lib/system.h @@ -156,16 +156,7 @@ off_t lseek (); char *getcwd (); #endif -#if TIME_WITH_SYS_TIME -# include <sys/time.h> -# include <time.h> -#else -# if HAVE_SYS_TIME_H -# include <sys/time.h> -# else -# include <time.h> -# endif -#endif +#include "xtime.h" #ifdef HAVE_IO_H #include <io.h> @@ -175,26 +166,6 @@ char *getcwd (); #include <direct.h> #endif -#ifdef timezone -#undef timezone /* needed for sgi */ -#endif - -#ifdef HAVE_SYS_TIMEB_H -#include <sys/timeb.h> -#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 |