SHA256
1
0
forked from pool/pappl
pappl/0001-Define-_FILE_OFFSET_BITS-64-on-linux-Issue-193.patch

44 lines
1.3 KiB
Diff

From 7ec4ce4331b6637c54a37943269e05d15ff6dd47 Mon Sep 17 00:00:00 2001
From: Henrik Juul Pedersen <HenrikJuul@gmail.com>
Date: Thu, 3 Mar 2022 14:13:24 +0100
Subject: [PATCH] Define _FILE_OFFSET_BITS=64 on linux (Issue #193)
Removes glibc 2.34 error:
error: "_TIME_BITS=64 is allowed only with _FILE_OFFSET_BITS=64"
Fixes pappl issue #193
---
configure | 2 +-
configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index e25fa81..697a5be 100755
--- a/configure
+++ b/configure
@@ -5080,7 +5080,7 @@ esac
case "$host_os_name" in #(
linux*) :
- CPPFLAGS="$CPPFLAGS -D__USE_MISC -D_TIME_BITS=64"
+ CPPFLAGS="$CPPFLAGS -D__USE_MISC -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64"
;; #(
darwin*) :
diff --git a/configure.ac b/configure.ac
index edccd1c..e3af0c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -484,7 +484,7 @@ AS_IF([test -n "$GCC"], [
dnl OS-specific compiler options...
AS_CASE(["$host_os_name"], [linux*], [
- CPPFLAGS="$CPPFLAGS -D__USE_MISC -D_TIME_BITS=64"
+ CPPFLAGS="$CPPFLAGS -D__USE_MISC -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64"
], [darwin*], [
AS_IF([test "$host_os_version" -ge 200 -a x$enable_debug != xyes], [
# macOS 11.0 and higher support the Apple Silicon (arm64) CPUs
--
2.35.1