From c66dc6895773cefc5f9f94bb05410e079d489e2f Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Tue, 1 Aug 2023 20:39:44 +0200 Subject: default to _FILE_OFFSET_BITS=64 to allow stat'ing large files on 32-bit glibc Fixes #23. --- lr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lr.c b/lr.c index 7635e31..d2ad498 100644 --- a/lr.c +++ b/lr.c @@ -31,6 +31,10 @@ #define _GNU_SOURCE +#ifndef _FILE_OFFSET_BITS +#define _FILE_OFFSET_BITS 64 +#endif + #include #include #include -- cgit 1.4.1