summaryrefslogtreecommitdiff
path: root/m4/time_h.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-05-11 00:27:52 +0200
committerBruno Haible <bruno@clisp.org>2017-05-11 00:27:52 +0200
commit2511522d3b59597e8e43e88fdc894d6544c409fb (patch)
tree278846d742ac6a68cb05d6f72a50ccec7d60de12 /m4/time_h.m4
parentf16bb1a764c350cd9adf9f40b47ae93fb5660262 (diff)
downloadgnulib-2511522d3b59597e8e43e88fdc894d6544c409fb.tar.gz
time: Fix missing initialization of HAVE_TIMEZONE_T.
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T here... * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here. * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_SYS_TIME_H_DEFAULTS. * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting. (configure.ac): Remove useless quoting.
Diffstat (limited to 'm4/time_h.m4')
-rw-r--r--m4/time_h.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/time_h.m4 b/m4/time_h.m4
index f52b60192e..28e22092e1 100644
--- a/m4/time_h.m4
+++ b/m4/time_h.m4
@@ -2,7 +2,7 @@
# Copyright (C) 2000-2001, 2003-2007, 2009-2017 Free Software Foundation, Inc.
-# serial 10
+# serial 11
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -120,6 +120,8 @@ AC_DEFUN([gl_HEADER_TIME_H_DEFAULTS],
HAVE_STRPTIME=1; AC_SUBST([HAVE_STRPTIME])
HAVE_TIMEGM=1; AC_SUBST([HAVE_TIMEGM])
HAVE_TZSET=1; AC_SUBST([HAVE_TZSET])
+ dnl Even GNU libc does not have timezone_t yet.
+ HAVE_TIMEZONE_T=0; AC_SUBST([HAVE_TIMEZONE_T])
dnl If another module says to replace or to not replace, do that.
dnl Otherwise, replace only if someone compiles with -DGNULIB_PORTCHECK;
dnl this lets maintainers check for portability.