From a79d7313fac1dede6302d499c04b75dfe66343a6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 4 Oct 2024 07:58:08 -0700 Subject: [PATCH] autoupdate --- lib/mktime-internal.h | 9 +++++---- lib/timegm.c | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/mktime-internal.h b/lib/mktime-internal.h index 3e2848c121..0693aaf140 100644 --- a/lib/mktime-internal.h +++ b/lib/mktime-internal.h @@ -71,8 +71,9 @@ typedef int mktime_offset_t; #endif /* Subroutine of mktime. Return the time_t representation of TP and - normalize TP, given that a struct tm * maps to a time_t. If - LOCAL, the mapping is performed by localtime_r, otherwise by gmtime_r. - Record next guess for localtime-gmtime offset in *OFFSET. */ -extern __time64_t __mktime_internal (struct tm *tp, bool local, + normalize TP, given that a struct tm * maps to a time_t as performed + by FUNC. Record next guess for localtime-gmtime offset in *OFFSET. */ +extern __time64_t __mktime_internal (struct tm *tp, + struct tm *(*func) (__time64_t const *, + struct tm *), mktime_offset_t *offset) attribute_hidden; diff --git a/lib/timegm.c b/lib/timegm.c index 1f1f66c61b..e5cf30c019 100644 --- a/lib/timegm.c +++ b/lib/timegm.c @@ -31,7 +31,7 @@ __timegm64 (struct tm *tmp) { static mktime_offset_t gmtime_offset; tmp->tm_isdst = 0; - return __mktime_internal (tmp, false, &gmtime_offset); + return __mktime_internal (tmp, __gmtime64_r, &gmtime_offset); } #if defined _LIBC && __TIMESIZE != 64 -- 2.39.5