From 3a09766f1af9498d79f312f43fe67e7ee02a9347 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 29 Jul 2023 18:22:50 +0200 Subject: [PATCH] time-h: Simplify after 2017-05-01 change. * m4/time_h.m4 (gl_TIME_H_DEFAULTS): Don't provide a default value for GNULIB_GETTIMEOFDAY. --- ChangeLog | 4 ++++ m4/time_h.m4 | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index fd83cb6770..96c217a02e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2023-07-29 Bruno Haible + time-h: Simplify after 2017-05-01 change. + * m4/time_h.m4 (gl_TIME_H_DEFAULTS): Don't provide a default value for + GNULIB_GETTIMEOFDAY. + time-h: Obey GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. * lib/time.in.h (timespec_get, timespec_getres, time, nanosleep, tzset, mktime, localtime_r, gmtime_r, localtime, strptime, ctime, strftime, diff --git a/m4/time_h.m4 b/m4/time_h.m4 index 8cc9ac8792..632d18fc07 100644 --- a/m4/time_h.m4 +++ b/m4/time_h.m4 @@ -2,7 +2,7 @@ # Copyright (C) 2000-2001, 2003-2007, 2009-2023 Free Software Foundation, Inc. -# serial 23 +# serial 24 # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -176,8 +176,4 @@ AC_DEFUN([gl_TIME_H_DEFAULTS], REPLACE_TIMEGM=0; AC_SUBST([REPLACE_TIMEGM]) REPLACE_TIMESPEC_GET=0; AC_SUBST([REPLACE_TIMESPEC_GET]) REPLACE_TZSET=0; AC_SUBST([REPLACE_TZSET]) - - dnl Hack so that the time module doesn't depend on the sys_time module. - dnl Default GNULIB_GETTIMEOFDAY to 0 if sys_time is absent. - : ${GNULIB_GETTIMEOFDAY=0}; AC_SUBST([GNULIB_GETTIMEOFDAY]) ]) -- 2.39.5