#include <EUSCompat.h>
#include <ctype.h>
+#include <string.h>
#include <time.h>
#include "getdate.h"
#ifdef SVR4
#define STANDARD 2
#define MAYBE 3
+#ifdef SVR4
extern long timezone;
+#endif
%}
lptr = p;
if (now == ((struct timeb *) NULL)) {
now = &ftz;
-#ifdef SVR4
+#if defined(SVR4) || defined(__OpenBSD__)
tod = time(0);
lt = localtime(&tod);
now->time = lt->tm_sec;
+#ifdef __OpenBSD__
+ now->timezone = lt->tm_gmtoff / 60;
+#else
now->timezone = timezone/60;
+#endif
#else
ftime(&ftz);
#endif /* SVR4 */
return sdate;
}
-yyerror(s) char *s;
-{}
+void
+yyerror(char *s)
+{
+}