Module: wine
Branch: master
Commit: 2211ca9fa57640b4c19c0a6aa57fda94328c53c5
URL: https://source.winehq.org/git/wine.git/?a=commit;h=2211ca9fa57640b4c19c0a6a…
Author: Alexandre Julliard <julliard(a)winehq.org>
Date: Wed Feb 2 13:23:21 2022 +0100
configure: Enable 64-bit time_t on Linux.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
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