From: Bruno Haible Date: Sat, 29 Jul 2023 16:22:50 +0000 (+0200) Subject: time-h: Simplify after 2017-05-01 change. X-Git-Tag: v1.0~1014 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=3a09766f1af9498d79f312f43fe67e7ee02a9347;p=gnulib.git 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. --- 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]) ])