* modules/time_r-tests (configure.ac): Do not check for tzname, as the tests don’t use it. Simply check for struct tm.tm_zone. --- ChangeLog | 5 +++++ modules/time_r-tests | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog index ebdd04567f..54eeb40706 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2024-06-16 Paul Eggert <egg...@cs.ucla.edu> + time_r-tests: avoid tzname test + * modules/time_r-tests (configure.ac): + Do not check for tzname, as the tests don’t use it. + Simply check for struct tm.tm_zone. + nstrftime: rename HAVE_TM_GMTOFF * m4/tm_gmtoff.m4 (gl_TM_GMTOFF): Rename HAVE_TM_GMTOFF to HAVE_STRUCT_TM_TM_GMTOFF, for consistency with diff --git a/modules/time_r-tests b/modules/time_r-tests index 56346c0f7c..9d82cb3657 100644 --- a/modules/time_r-tests +++ b/modules/time_r-tests @@ -11,10 +11,9 @@ thread nanosleep configure.ac: -dnl Possibly define HAVE_STRUCT_TM_TM_ZONE. -AC_REQUIRE([AC_STRUCT_TIMEZONE]) -dnl Possibly define HAVE_STRUCT_TM_TM_GMTOFF. -AC_CHECK_MEMBERS([struct tm.tm_gmtoff],,,[[#include <time.h>]]) +AC_CHECK_MEMBERS([struct tm.tm_gmtoff, struct tm.tm_zone], [], [], + [[#include <time.h> + ]]) Makefile.am: TESTS += \ -- 2.43.0