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/strptime_l.c | |
parent | ec6d2b83f254606fc2e646595782a70b301a2524 (diff) | |
download | glibc-41349f6f67c83e7bafe49f985b56493d2c4c9c77.tar glibc-41349f6f67c83e7bafe49f985b56493d2c4c9c77.tar.gz glibc-41349f6f67c83e7bafe49f985b56493d2c4c9c77.tar.bz2 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/strptime_l.c')
-rw-r--r-- | time/strptime_l.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/time/strptime_l.c b/time/strptime_l.c index 80fd705b8d..85c3249fcc 100644 --- a/time/strptime_l.c +++ b/time/strptime_l.c @@ -30,8 +30,10 @@ #ifdef _LIBC # define HAVE_LOCALTIME_R 0 # include "../locale/localeinfo.h" -#endif +# define time_t __time64_t +# define __localtime_r(t, tp) __localtime64_r (t, tp) +#endif #if ! HAVE_LOCALTIME_R && ! defined localtime_r # ifdef _LIBC |