[RFC] Reduce namespace pollution on zlib.h
ache at nagual.pp.ru
Sat Mar 27 12:37:36 UTC 2010
On Fri, Mar 26, 2010 at 05:26:03PM -0700, Xin LI wrote:
> > This is wrong, FreeBSD has native 64-bit stat() etc. and does not need
> > _LARGEFILE_WHATEVER.
> Yes we do not need that and it just cause compilation errors.
> The problem is that some third party software thinks that they need to
> define _LARGEFILE64_*, which will break zlib.h on FreeBSD :(
To keep ports code untouched you should not #undef anything like that
names in the public zlib.h header, just remove/redefine *LARGEFILE* for
zlib only in some private internal header.
More information about the freebsd-ports