diff mbox series

[27/52] y2038: Add __USE_TIME_BITS64 support for time_t

Message ID 20210305201518.798584-28-adhemerval.zanella@linaro.org
State New
Headers show
Series Add 64 bit time support on legacy ABIs | expand

Commit Message

Adhemerval Zanella March 5, 2021, 8:14 p.m. UTC
The __USE_TIME_BITS64 is not defined internally yet.
---
 time/bits/types/time_t.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/time/bits/types/time_t.h b/time/bits/types/time_t.h
index ab8287c6fe..84d67f6ac3 100644
--- a/time/bits/types/time_t.h
+++ b/time/bits/types/time_t.h
@@ -4,6 +4,10 @@ 
 #include <bits/types.h>
 
 /* Returned by `time'.  */
+#ifdef __USE_TIME_BITS64
+typedef __time64_t time_t;
+#else
 typedef __time_t time_t;
+#endif
 
 #endif