summaryrefslogtreecommitdiff
path: root/modules/time_rz
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-05-01 17:27:53 +0200
committerBruno Haible <bruno@clisp.org>2017-05-01 18:37:41 +0200
commit210cb7a9fb5a917e99dcf8e42ac4147a2b81bb33 (patch)
tree822ba35106861735034d85f76f167580e4e0df38 /modules/time_rz
parent45af9a363532d98939d5f49d0682ca3ad4b3a739 (diff)
downloadgnulib-210cb7a9fb5a917e99dcf8e42ac4147a2b81bb33.tar.gz
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.
Diffstat (limited to 'modules/time_rz')
-rw-r--r--modules/time_rz1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/time_rz b/modules/time_rz
index e934d55720..1bc29f401f 100644
--- a/modules/time_rz
+++ b/modules/time_rz
@@ -24,6 +24,7 @@ setenv [test "$HAVE_TIMEZONE_T" = 0]
stdbool [test "$HAVE_TIMEZONE_T" = 0]
time_r [test "$HAVE_TIMEZONE_T" = 0]
timegm [test "$HAVE_TIMEZONE_T" = 0]
+tzset [test "$HAVE_TIMEZONE_T" = 0]
unsetenv [test "$HAVE_TIMEZONE_T" = 0]
configure.ac: