tzset: Work around TZ problem on native Windows.
commit210cb7a9fb5a917e99dcf8e42ac4147a2b81bb33
authorBruno Haible <bruno@clisp.org>
Mon, 1 May 2017 15:27:53 +0000 (1 17:27 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 1 May 2017 16:37:41 +0000 (1 18:37 +0200)
tree822ba35106861735034d85f76f167580e4e0df38
parent45af9a363532d98939d5f49d0682ca3ad4b3a739
tzset: Work around TZ problem on native Windows.

* m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
Windows, set REPLACE_TZSET to 1.
* lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
invoke '_tzset' instead of 'tzset'.
* doc/posix-functions/tzset.texi: Mention the native Windows workaround.

* modules/time_rz (Depends-on): Add tzset.
* lib/time_rz.c (tzset): Remove fallback definition.
* m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
ChangeLog
doc/posix-functions/tzset.texi
lib/time_rz.c
lib/tzset.c
m4/time_rz.m4
m4/tzset.m4
modules/time_rz