From 2211ca9fa57640b4c19c0a6aa57fda94328c53c5 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 2 Feb 2022 13:23:21 +0100 Subject: [PATCH] configure: Enable 64-bit time_t on Linux. Signed-off-by: Alexandre Julliard --- configure | 3 +++ configure.ac | 1 + include/config.h.in | 3 +++ 3 files changed, 7 insertions(+) diff --git a/configure b/configure index f5afadafd39..548a07d01bb 100755 --- a/configure +++ b/configure @@ -10579,6 +10579,9 @@ fi printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h + +printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h + case $host_cpu in *i[3456789]86*) DLLFLAGS="$DLLFLAGS -fno-PIC" diff --git a/configure.ac b/configure.ac index 039beaf98ac..f4a5ff03de4 100644 --- a/configure.ac +++ b/configure.ac @@ -812,6 +812,7 @@ case $host_os in *) AC_DEFINE(_GNU_SOURCE,1,[Define to 1 to enable GNU extensions on Linux]) + AC_DEFINE(_TIME_BITS,64,[Define to 64 to enable 64-bit time_t on Linux]) case $host_cpu in *i[[3456789]]86*) DLLFLAGS="$DLLFLAGS -fno-PIC" diff --git a/include/config.h.in b/include/config.h.in index 9717dc17236..a8218444be6 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -903,6 +903,9 @@ /* Define for large files, on AIX-style hosts. */ #undef _LARGE_FILES +/* Define to 64 to enable 64-bit time_t on Linux */ +#undef _TIME_BITS + /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus