]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Drop dead glibc feature-macro juggling from gzguts.h
authorNathan Moin Vaziri <nathan@nathanm.com>
Fri, 17 Apr 2026 06:58:18 +0000 (23:58 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 26 May 2026 15:11:31 +0000 (17:11 +0200)
commit0eeb9ec115ce14f17b9384ff08dfa208cd0046dd
tree14b3735178f656a0d177db1a032cf42bed27fc51
parent691ad0db6986f5270750c221033bb0ed00bb5702
Drop dead glibc feature-macro juggling from gzguts.h

_LARGEFILE_SOURCE enables fseeko/ftello, which zlib-ng never calls
(gzlib.c uses lseek/lseek64/_lseeki64 directly). The _FILE_OFFSET_BITS
and _TIME_BITS undefs were defensive against a consumer-provided
-D_FILE_OFFSET_BITS=64 leaking into library internals, but they sat
after zbuild.h had already included <stdio.h> so they never affected
system-header sizing. The zlib.h gzopen->gzopen64 remap they were
guarding against is already blocked by the Z_INTERNAL gate for
library builds.
gzguts.h