summaryrefslogtreecommitdiff
path: root/src/time/gmtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time/gmtime.c')
-rw-r--r--src/time/gmtime.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/time/gmtime.c b/src/time/gmtime.c
index d4d5d1f1..3791b24c 100644
--- a/src/time/gmtime.c
+++ b/src/time/gmtime.c
@@ -1,11 +1,10 @@
-#include <time.h>
+#include "time_impl.h"
+#include <errno.h>
-#include "__time.h"
+struct tm *__gmtime_r(const time_t *restrict, struct tm *restrict);
struct tm *gmtime(const time_t *t)
{
static struct tm tm;
- __time_to_tm(*t, &tm);
- tm.tm_isdst = 0;
- return &tm;
+ return __gmtime_r(t, &tm);
}