From 8db1662d749991a77b8945c752ab024d2d6b1244 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 3 Feb 2022 10:23:22 +0100 Subject: [PATCH] configure: Only define _TIME_BITS together with _FILE_OFFSET_BITS. Signed-off-by: Alexandre Julliard --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 548a07d01bb..2d4aed06f6f 100755 --- a/configure +++ b/configure @@ -10579,7 +10579,7 @@ fi printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h - + test "$ac_cv_sys_file_offset_bits" = 64 && printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h case $host_cpu in diff --git a/configure.ac b/configure.ac index f4a5ff03de4..63e7aa7f5dd 100644 --- a/configure.ac +++ b/configure.ac @@ -812,7 +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]) + test "$ac_cv_sys_file_offset_bits" = 64 && 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"