changeset 4026:c4a75407123a

Sync from libc, now that it has the latest fix.
author Jim Meyering <jim@meyering.net>
date Mon, 25 Nov 2002 13:22:20 +0000
parents 8417dd10919b
children 87e661d618cc
files lib/mktime.c
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
    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)