# HG changeset patch # User Jim Meyering # Date 733941404 0 # Node ID 1cdf94788f9bc2112dd9165b1b4888203abf959c # Parent e5f368fdc8c2d1ad2f6993aa2018df31bf9dd20f * [sgi]: Undefine timezone before including . * [time.h vs sys/time.h]: Fix boolean algebra typo from Mar 31 consolidation. * Move static dcls of yyerror and yylex to a point following the definition of those symbols to getdate_{yyerror,yylex}. diff -r e5f368fdc8c2 -r 1cdf94788f9b lib/getdate.y --- a/lib/getdate.y Sun Apr 04 15:22:00 1993 +0000 +++ b/lib/getdate.y Sun Apr 04 16:36:44 1993 +0000 @@ -1,5 +1,5 @@ %{ -/* $Revision: 2.1 $ +/* $Revision: 1.2 $ ** ** Originally written by Steven M. Bellovin while ** at the University of North Carolina at Chapel Hill. Later tweaked by @@ -49,7 +49,11 @@ #include -#if !(defined (USG) || !defined (sgi) || !defined (__386BSD__)) || defined(BSD4_2) || defined(BSD4_1C) || (defined (hp9000) && !defined (hpux)) || defined(_AIX) +#if sgi +#undef timezone +#endif + +#if !(defined (USG) || defined (sgi) || defined (__386BSD__)) || defined(BSD4_2) || defined(BSD4_1C) || (defined (hp9000) && !defined (hpux)) || defined(_AIX) #include #else #include @@ -79,22 +83,18 @@ #include #endif -#if sgi -#undef timezone -#endif - extern struct tm *localtime(); -static int yylex (); -static int yyerror (); - #define yyparse getdate_yyparse #define yylex getdate_yylex #define yyerror getdate_yyerror +static int yylex (); +static int yyerror (); + #if !defined(lint) && !defined(SABER) static char RCS[] = - "$Header: str2date.y,v 2.1 90/09/06 08:15:06 cronan Exp $"; + "$Header: /w/src/cvsroot/fileutils/lib/getdate.y,v 1.2 1993/04/04 15:21:49 meyering Exp $"; #endif /* !defined(lint) && !defined(SABER) */