diff options
Diffstat (limited to 'time/localtime.c')
-rw-r--r-- | time/localtime.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/time/localtime.c b/time/localtime.c index 92dbfe0f8c..96879d4ec0 100644 --- a/time/localtime.c +++ b/time/localtime.c @@ -34,8 +34,22 @@ weak_alias (__localtime_r, localtime_r) /* Return the `struct tm' representation of *T in local time. */ struct tm * -localtime (const time_t *t) +__localtime64 (const __time64_t *t) { return __tz_convert (*t, 1, &_tmbuf); } +libc_hidden_def (__localtime64) + +/* Provide a 32-bit variant if needed. */ + +#if __TIMESIZE != 64 + +struct tm * +localtime (const time_t *t) +{ + __time64_t t64 = *t; + return __localtime64 (&t64); +} libc_hidden_def (localtime) + +#endif |