From 2ca5cfe7a45af686b41892b3d61e0fec4014d232 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 8 Sep 2023 16:59:43 -0400 Subject: [PATCH] Change 64-bit time_t defines. --- config-scripts/cups-compiler.m4 | 4 ++-- configure | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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. -- 2.47.2