]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Change 64-bit time_t defines.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Fri, 8 Sep 2023 20:59:43 +0000 (16:59 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Fri, 8 Sep 2023 20:59:43 +0000 (16:59 -0400)
config-scripts/cups-compiler.m4
configure

index bcb3db3cd31bcf6f25ce5f7af43bedd1adcc4c1d..3bf30ad85869ad8dca6836b3e109bcb74fade1d1 100644 (file)
@@ -227,8 +227,8 @@ AS_IF([test -n "$GCC"], [
 # Add general compiler options per platform...
 AS_CASE([$host_os_name], [linux*], [
     # glibc 2.8 and higher breaks peer credentials unless you
-    # define _GNU_SOURCE...
-    OPTIM="$OPTIM -D_GNU_SOURCE -D__TIMESIZE=64"
+    # define _GNU_SOURCE...  32-bit Linux needs 64-bit time/file offsets...
+    OPTIM="$OPTIM -D_GNU_SOURCE -D__TIME_BITS=64 -D__FILE_BITS=64"
 
     # The -z relro option is provided by the Linux linker command to
     # make relocatable data read-only.
index fd34c7d8702aa72b1bcc395d349a604d1cedb55a..aa5cba3a372e06ad8c51c4269514723ee43c15fc 100755 (executable)
--- a/configure
+++ b/configure
@@ -8302,8 +8302,8 @@ case $host_os_name in #(
   linux*) :
 
     # glibc 2.8 and higher breaks peer credentials unless you
-    # define _GNU_SOURCE...
-    OPTIM="$OPTIM -D_GNU_SOURCE -D__TIMESIZE=64"
+    # define _GNU_SOURCE...  32-bit Linux needs 64-bit time/file offsets...
+    OPTIM="$OPTIM -D_GNU_SOURCE -D__TIME_BITS=64 -D__FILE_BITS=64"
 
     # The -z relro option is provided by the Linux linker command to
     # make relocatable data read-only.