]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
y2038: Add __USE_TIME_BITS64 support for time_t
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 17 Feb 2021 19:18:42 +0000 (16:18 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 15 Jun 2021 13:42:11 +0000 (10:42 -0300)
The __USE_TIME_BITS64 is not defined internally yet.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
time/bits/types/time_t.h

index ab8287c6fe50c6fcc08ba142f8277f1776a42ea0..84d67f6ac346e249bd419868e89aa1bacd5a8f93 100644 (file)
@@ -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