mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-07 06:50:24 +08:00
* localtime.cc (tzset): Call tzsetwall only if it hasn't been
called before.
This commit is contained in:
parent
fb09a73e93
commit
4b93ac1f7f
@ -1,3 +1,8 @@
|
|||||||
|
2007-12-11 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* localtime.cc (tzset): Call tzsetwall only if it hasn't been
|
||||||
|
called before.
|
||||||
|
|
||||||
2007-12-07 Corinna Vinschen <corinna@vinschen.de>
|
2007-12-07 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* include/sys/cygwin.h: Include limits.h.
|
* include/sys/cygwin.h: Include limits.h.
|
||||||
|
@ -1476,6 +1476,7 @@ tzset P((void))
|
|||||||
const char * name = getenv("TZ");
|
const char * name = getenv("TZ");
|
||||||
|
|
||||||
if (name == NULL) {
|
if (name == NULL) {
|
||||||
|
if (!lcl_is_set)
|
||||||
tzsetwall();
|
tzsetwall();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user