rework ldso handling of global symbol table for consistency
[musl] / src / time / timegm.c
index e7a7939..b5dae8b 100644 (file)
@@ -2,6 +2,8 @@
 #include "time_impl.h"
 #include <errno.h>
 
+extern const char __gmt[];
+
 time_t timegm(struct tm *tm)
 {
        struct tm new;
@@ -13,6 +15,6 @@ time_t timegm(struct tm *tm)
        *tm = new;
        tm->tm_isdst = 0;
        tm->__tm_gmtoff = 0;
-       tm->__tm_zone = "GMT";
+       tm->__tm_zone = __gmt;
        return t;
 }