Alexandre Julliard : configure: Only define _TIME_BITS together with _FILE_OFFSET_BITS.

Alexandre Julliard julliard at winehq.org
Thu Feb 3 16:06:55 CST 2022


Module: wine
Branch: master
Commit: 8db1662d749991a77b8945c752ab024d2d6b1244
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8db1662d749991a77b8945c752ab024d2d6b1244

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Feb  3 10:23:22 2022 +0100

configure: Only define _TIME_BITS together with _FILE_OFFSET_BITS.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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"




More information about the wine-cvs mailing list