Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Mar 2010 15:24:14 +0300
From:      Andrey Chernov <ache@nagual.pp.ru>
To:        d@delphij.net
Cc:        ports@FreeBSD.ORG, Dag-Erling Sm??rgrav <des@des.no>, Alexander Logvinov <avl@logvinov.com>, the_paya@gentoo.org, freebsd-arch@FreeBSD.ORG
Subject:   Re: [RFC] Reduce namespace pollution on zlib.h
Message-ID:  <20100327122413.GA95235@nagual.pp.ru>
In-Reply-To: <4BAD509B.3080805@delphij.net>
References:  <4BACFE18.7010309@delphij.net> <86wrwylji0.fsf@ds4.des.no> <4BAD509B.3080805@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- 
http://ache.pp.ru/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100327122413.GA95235>