From 1bc47090900d16d3718a36f7c9a1991c53ecc7f4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 25 Nov 2002 13:22:20 +0000 Subject: [PATCH] Sync from libc, now that it has the latest fix. --- lib/mktime.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/mktime.c b/lib/mktime.c index 21926fc782..22217900d2 100644 --- a/lib/mktime.c +++ b/lib/mktime.c @@ -103,7 +103,10 @@ #endif /* How many days come before each month (0-12). */ -STATIC const unsigned short int __mon_yday[2][13] = +#ifndef _LIBC +static +#endif +const unsigned short int __mon_yday[2][13] = { /* Normal years. */ { 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 }, @@ -216,7 +219,10 @@ ranged_convert (struct tm *(*convert) (const time_t *, struct tm *), Use *OFFSET to keep track of a guess at the offset of the result, compared to what the result would be for UTC without leap seconds. If *OFFSET's guess is correct, only one CONVERT call is needed. */ -STATIC time_t +#ifndef _LIBC +static +#endif +time_t __mktime_internal (struct tm *tp, struct tm *(*convert) (const time_t *, struct tm *), time_t *offset) -- 2.30.2