diff options
author | Leah Neukirchen <leah@vuxu.org> | 2023-08-01 20:39:44 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2023-08-01 20:40:18 +0200 |
commit | c66dc6895773cefc5f9f94bb05410e079d489e2f (patch) | |
tree | f131559ed7ea717e6c86af6d2a95e2a3eff725df | |
parent | 5af9b79e4ecd07a600ded1a801023536cde97f95 (diff) | |
download | lr-c66dc6895773cefc5f9f94bb05410e079d489e2f.tar.gz lr-c66dc6895773cefc5f9f94bb05410e079d489e2f.tar.xz lr-c66dc6895773cefc5f9f94bb05410e079d489e2f.zip |
default to _FILE_OFFSET_BITS=64 to allow stat'ing large files on 32-bit glibc
Fixes #23.
-rw-r--r-- | lr.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <sys/param.h> #include <sys/stat.h> #include <sys/types.h> |