OSDN Git Service

A few symbols needed for testing
authorEric Andersen <andersen@codepoet.org>
Tue, 20 Nov 2001 19:33:08 +0000 (19:33 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 20 Nov 2001 19:33:08 +0000 (19:33 -0000)
libc/misc/time/localtime.c
libc/misc/time/strftime.c

index bedbb8e..cdfd9bd 100644 (file)
@@ -2,6 +2,15 @@
 #include <time.h>
 #include <sys/time.h>
 
+/* These globals are exported by the C library */
+char *__tzname[2] = { (char *) "GMT", (char *) "GMT" };
+int __daylight = 0;
+long int __timezone = 0L;
+weak_alias (__tzname, tzname);
+weak_alias (__daylight, daylight);
+weak_alias (__timezone, timezone);
+
+
 extern void __tm_conv();
 
 struct tm *localtime(timep)
index 8529446..4dd3d7d 100644 (file)
@@ -145,10 +145,8 @@ size_t strftime( char *s , size_t maxsize , const char *format , register const
 #if HAVE_TM_ZONE
   zone = (const char *) tp->tm_zone;
 #endif
-#if HAVE_TZNAME
   if (!(zone && *zone) && tp->tm_isdst >= 0)
     zone = tzname[tp->tm_isdst];
-#endif
   if (!(zone && *zone))
     zone = "???";