about summary refs log tree commit diff
path: root/time/strptime_l.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2023-01-26 14:25:05 +0100
committerAndreas Schwab <schwab@suse.de>2023-02-07 10:15:09 +0100
commit41349f6f67c83e7bafe49f985b56493d2c4c9c77 (patch)
tree62c09b78569f58fb155cefcd204b38e200edf443 /time/strptime_l.c
parentec6d2b83f254606fc2e646595782a70b301a2524 (diff)
downloadglibc-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/strptime_l.c')
-rw-r--r--time/strptime_l.c4
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