diff options
Diffstat (limited to 'time/gmtime.c')
-rw-r--r-- | time/gmtime.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/time/gmtime.c b/time/gmtime.c index 1fc129b8e8..8a4a0a4f28 100644 --- a/time/gmtime.c +++ b/time/gmtime.c @@ -18,13 +18,14 @@ #include <time.h> #include <time/time-variables.h> +#include <time/time-private.h> /* Return the `struct tm' representation of *T in UTC, using *TP to store the result. */ struct tm * __gmtime_r (const time_t *t, struct tm *tp) { - return __tz_convert (t, 0, tp); + return __tz_convert (t, /* reentrant */ true, /* localtime */ false, tp); } libc_hidden_def (__gmtime_r) weak_alias (__gmtime_r, gmtime_r) @@ -34,5 +35,6 @@ weak_alias (__gmtime_r, gmtime_r) struct tm * gmtime (const time_t *t) { - return __tz_convert (t, 0, &_tmbuf); + return __tz_convert (t, /* reentrant */ false, /* localtime */ false, + &_tmbuf); } |