]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Move LFS64 detection from build system to C preprocessor
authorNathan Moin Vaziri <nathan@nathanm.com>
Fri, 17 Apr 2026 06:42:59 +0000 (23:42 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 26 May 2026 15:11:31 +0000 (17:11 +0200)
commit18bfaf7fc8ca71ce993fed1cda986182fe0edea9
tree3e13468c352ee72adbdc4a96518da9a0837ab8f5
parent5c4f94371b2615f82b1af09a11bfa98316e4fb02
Move LFS64 detection from build system to C preprocessor

zbuild.h now defines _LARGEFILE64_SOURCE before any system header, so
glibc exposes off64_t and lseek64 where available. The _LFS64_LARGEFILE
check already in zconf.h handles per-platform gating. Drops the
redundant -D__USE_LARGEFILE64 (internal glibc macro, set automatically)
and the unused __off64_t probe that only wrote to HAVE___OFF64_T.

The configure script's _off64_t probe was log-only and the off64_t=yes
path assumed fseeko exists without testing; both are removed in favor
of the standalone fseeko check.
CMakeLists.txt
configure
zbuild.h