OpenBSD fixes for dtcm. There are no global "timezone" and "tzname" symbols on BSD. Apart from that, mainly #ifdefs.
This commit is contained in:
committed by
Jon Trulson
parent
3718075b7c
commit
57463ec10e
@@ -65,7 +65,9 @@ static char sccsid[] = "@(#)getdate.y 1.10 94/11/07 Copyr 1993 Sun Microsystems
|
||||
#define STANDARD 2
|
||||
#define MAYBE 3
|
||||
|
||||
#ifdef SVR4
|
||||
extern long timezone;
|
||||
#endif
|
||||
|
||||
%}
|
||||
|
||||
|
||||
@@ -1008,6 +1008,7 @@ init_time()
|
||||
_Xltimeparams localtime_buf;
|
||||
_Xgtimeparams gmtime_buf;
|
||||
|
||||
#ifdef SVR4
|
||||
/* Fix for QAR 31607 */
|
||||
tzset();
|
||||
if (getenv("TZ") == NULL){
|
||||
@@ -1017,6 +1018,7 @@ init_time()
|
||||
putenv(tzptr);
|
||||
tzset();
|
||||
}
|
||||
#endif
|
||||
|
||||
t = now();
|
||||
tm = *_XLocaltime(&t, localtime_buf);
|
||||
|
||||
Reference in New Issue
Block a user