From cec1cce209240ea596218131b499d31d79c7790f Mon Sep 17 00:00:00 2001 From: millert <> Date: Tue, 7 Apr 2015 01:47:04 +0000 Subject: [PATCH] Remove obsolete timezone() function. Add timezone and daylight symbols for XSI compatibility. --- src/include/time.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/include/time.h b/src/include/time.h index a48321a7..8c432b06 100644 --- a/src/include/time.h +++ b/src/include/time.h @@ -1,4 +1,4 @@ -/* $OpenBSD: time.h,v 1.27 2015/03/17 19:31:30 millert Exp $ */ +/* $OpenBSD: time.h,v 1.28 2015/04/07 01:47:04 millert Exp $ */ /* $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ */ /* @@ -135,6 +135,10 @@ size_t strftime(char *__restrict, size_t, const char *__restrict, __attribute__ ((__bounded__(__string__,1,2))); time_t time(time_t *); +#if __XPG_VISIBLE >= 300 +extern int daylight; +extern long timezone; +#endif #if __XPG_VISIBLE >= 400 char *strptime(const char *__restrict, const char *__restrict, struct tm *__restrict); @@ -166,7 +170,6 @@ int clock_getcpuclockid(pid_t, clockid_t *); #endif #if __BSD_VISIBLE -char *timezone(int, int); void tzsetwall(void); time_t timelocal(struct tm *); time_t timegm(struct tm *);