diff options
author | Andreas Schwab <schwab@suse.de> | 2023-01-26 14:25:05 +0100 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2023-02-07 10:15:09 +0100 |
commit | 41349f6f67c83e7bafe49f985b56493d2c4c9c77 (patch) | |
tree | 62c09b78569f58fb155cefcd204b38e200edf443 /time/strftime_l.c | |
parent | ec6d2b83f254606fc2e646595782a70b301a2524 (diff) | |
download | glibc-41349f6f67c83e7bafe49f985b56493d2c4c9c77.tar.gz glibc-41349f6f67c83e7bafe49f985b56493d2c4c9c77.tar.xz glibc-41349f6f67c83e7bafe49f985b56493d2c4c9c77.zip |
Use 64-bit time_t interfaces in strftime and strptime (bug 30053)
Both functions use time_t only internally, so the ABI is not affected.
Diffstat (limited to 'time/strftime_l.c')
-rw-r--r-- | time/strftime_l.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/time/strftime_l.c b/time/strftime_l.c index e09561c39c..402c6c4111 100644 --- a/time/strftime_l.c +++ b/time/strftime_l.c @@ -159,6 +159,10 @@ extern char *tzname[]; #ifdef _LIBC # define tzname __tzname # define tzset __tzset + +# define time_t __time64_t +# define __gmtime_r(t, tp) __gmtime64_r (t, tp) +# define mktime(tp) __mktime64 (tp) #endif #if !HAVE_TM_GMTOFF |