diff options
author | Peter Wemm <peter@FreeBSD.org> | 2001-08-10 09:43:22 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2001-08-10 09:43:22 +0000 |
commit | 7f22ecb0da2f5623c8ad69cbab0e478a9709fb61 (patch) | |
tree | 2b4dc24b830b514680009ead3884ecb1c40974c7 /contrib/cvs/lib/getdate.y | |
parent | a3b502f88fd3d67bf547634d411d567524c4c1b1 (diff) |
Import cvs-1.11.1p1 onto vendor branch
Notes
Notes:
svn path=/vendor/cvs/dist/; revision=81404
Diffstat (limited to 'contrib/cvs/lib/getdate.y')
-rw-r--r-- | contrib/cvs/lib/getdate.y | 46 |
1 files changed, 6 insertions, 40 deletions
diff --git a/contrib/cvs/lib/getdate.y b/contrib/cvs/lib/getdate.y index c3f18c6ef396..a2786eda7759 100644 --- a/contrib/cvs/lib/getdate.y +++ b/contrib/cvs/lib/getdate.y @@ -39,46 +39,11 @@ Include <sys/time.h> if that will be used. */ #if defined(vms) - -#include <types.h> -#include <time.h> - -#else - -#include <sys/types.h> - -#ifdef TIME_WITH_SYS_TIME -#include <sys/time.h> -#include <time.h> -#else -#ifdef HAVE_SYS_TIME_H -#include <sys/time.h> -#else -#include <time.h> -#endif -#endif - -#ifdef timezone -#undef timezone /* needed for sgi */ -#endif - -#if defined(HAVE_SYS_TIMEB_H) -#include <sys/timeb.h> -#else -/* -** We use the obsolete `struct timeb' as part of our interface! -** Since the system doesn't have it, we define it here; -** our callers must do likewise. -*/ -struct timeb { - time_t time; /* Seconds since the epoch */ - unsigned short millitm; /* Field not used */ - short timezone; /* Minutes west of GMT */ - short dstflag; /* Field not used */ -}; -#endif /* defined(HAVE_SYS_TIMEB_H) */ - -#endif /* defined(vms) */ +# include <types.h> +#else /* defined(vms) */ +# include <sys/types.h> +# include "xtime.h" +#endif /* !defined(vms) */ #if defined (STDC_HEADERS) || defined (USG) #include <string.h> @@ -115,6 +80,7 @@ extern struct tm *localtime(); #define yylex getdate_yylex #define yyerror getdate_yyerror +static int yyparse (); static int yylex (); static int yyerror (); |