From: Michael R Sweet Date: Fri, 8 Sep 2023 20:59:43 +0000 (-0400) Subject: Change 64-bit time_t defines. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ca5cfe7a45af686b41892b3d61e0fec4014d232;p=thirdparty%2Fcups.git Change 64-bit time_t defines. --- diff --git a/config-scripts/cups-compiler.m4 b/config-scripts/cups-compiler.m4 index bcb3db3cd3..3bf30ad858 100644 --- a/config-scripts/cups-compiler.m4 +++ b/config-scripts/cups-compiler.m4 @@ -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. diff --git a/configure b/configure index fd34c7d870..aa5cba3a37 100755 --- 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.