summaryrefslogtreecommitdiff
path: root/libc/misc/time/localtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/time/localtime.c')
-rw-r--r--libc/misc/time/localtime.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/misc/time/localtime.c b/libc/misc/time/localtime.c
index bedbb8ea7..cdfd9bde3 100644
--- a/libc/misc/time/localtime.c
+++ b/libc/misc/time/localtime.c
@@ -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)