[PATCH 5/9] support: Use 64 bit time_t routines on delayed_exit

Adhemerval Zanella adhemerval.zanella@linaro.org
Mon Feb 13 17:12:58 GMT 2023


The failure only shows if the system time is set past 2038.

Checked on i686-linux-gnu and on system emulated arm-linux-gnueabihf
with time set past y2038.
---
 support/delayed_exit.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/support/delayed_exit.c b/support/delayed_exit.c
index e5028bf13f..d53012a8e2 100644
--- a/support/delayed_exit.c
+++ b/support/delayed_exit.c
@@ -16,6 +16,9 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
 
+#define _FILE_OFFSET_BITS 64
+#define _TIME_BITS 64
+
 #include <support/xthread.h>
 #include <support/xsignal.h>
 
-- 
2.34.1



More information about the Libc-alpha mailing list