File 0004-fix-always-set-_FILE_OFFSET_BITS-64-on-UNIX-like-sys.patch of Package dwarfs
From f2dbb884a2abb4e0176326c0d6817e560da8f5f1 Mon Sep 17 00:00:00 2001
From: Marcus Holland-Moritz <github@mhxnet.de>
Date: Tue, 24 Mar 2026 13:47:24 +0100
Subject: [PATCH 4/4] fix: always set `_FILE_OFFSET_BITS=64` on UNIX-like
systems (gh #354)
---
cmake/compile.cmake | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cmake/compile.cmake b/cmake/compile.cmake
index d07fc92a..708bf617 100644
--- a/cmake/compile.cmake
+++ b/cmake/compile.cmake
@@ -77,6 +77,8 @@ if(NOT WIN32)
if (HAVE_CLOSE_RANGE)
add_compile_definitions(DWARFS_HAVE_CLOSE_RANGE=1)
endif()
+
+ add_compile_definitions(_FILE_OFFSET_BITS=64)
endif()
set(default_build_type "Release")
--
2.53.0