summaryrefslogtreecommitdiff
path: root/lib/mktime.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-11-28 09:48:40 +0000
committerJim Meyering <jim@meyering.net>2002-11-28 09:48:40 +0000
commit015aa7dfc414fd920b27b213a1747470374c0bc9 (patch)
tree8b2e2a420419a4ee6cdcd29fc3a184382e550415 /lib/mktime.c
parent80cff991e86f6185679b4ef10cca92b982b7b19e (diff)
downloadcoreutils-015aa7dfc414fd920b27b213a1747470374c0bc9.tar.xz
Merge from gnulib/libc, for a slightly uglier solution.
Diffstat (limited to 'lib/mktime.c')
-rw-r--r--lib/mktime.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/mktime.c b/lib/mktime.c
index 140164d2a..f4c2c67d2 100644
--- a/lib/mktime.c
+++ b/lib/mktime.c
@@ -100,7 +100,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 },
@@ -213,7 +216,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)