]> Savannah Git Hosting - gnulib.git/commitdiff
mktime, mktime-internal: Assume tzset exists.
authorBruno Haible <bruno@clisp.org>
Fri, 14 Aug 2020 18:02:07 +0000 (20:02 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 14 Aug 2020 18:02:07 +0000 (20:02 +0200)
* lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
* m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.

ChangeLog
lib/mktime.c
m4/mktime.m4

index 8b0f28706394283dd847a75c8c9825728903082f..65070d7fd0c939103074f64e9d05602be717fcda 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-08-14  Bruno Haible  <bruno@clisp.org>
+
+       mktime, mktime-internal: Assume tzset exists.
+       * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
+       * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
+
 2020-08-14  Bruno Haible  <bruno@clisp.org>
 
        strdup: Assume the function exists.
index c8735164f695a7f96d0ea781677597e3d520678f..600148795b861f1fbda69bfc5b556298e4377b7a 100644 (file)
@@ -94,7 +94,7 @@ my_tzset (void)
   const char *tz = getenv ("TZ");
   if (tz != NULL && strchr (tz, '/') != NULL)
     _putenv ("TZ=");
-# elif HAVE_TZSET
+# else
   tzset ();
 # endif
 }
index 8d9b827fe216fe09db69d665481044cc986796c1..afc8a8762d88aa8b3eaa362473908e681bdde336 100644 (file)
@@ -1,4 +1,4 @@
-# serial 32
+# serial 33
 dnl Copyright (C) 2002-2003, 2005-2007, 2009-2020 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -31,7 +31,6 @@ AC_DEFUN([gl_FUNC_MKTIME_WORKS],
   dnl in Autoconf and because it invokes AC_LIBOBJ.
   AC_CHECK_HEADERS_ONCE([unistd.h])
   AC_CHECK_DECLS_ONCE([alarm])
-  AC_CHECK_FUNCS_ONCE([tzset])
   AC_REQUIRE([gl_MULTIARCH])
   AC_CACHE_CHECK([for working mktime], [gl_cv_func_working_mktime],
     [if test $APPLE_UNIVERSAL_BUILD = 1; then