From owner-freebsd-ports@FreeBSD.ORG Sat Mar 27 12:37:36 2010 Return-Path: Delivered-To: ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97235106566B; Sat, 27 Mar 2010 12:37:36 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id E634A8FC0A; Sat, 27 Mar 2010 12:37:35 +0000 (UTC) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.4/8.14.4) with ESMTP id o2RCOHNh095382; Sat, 27 Mar 2010 15:24:17 +0300 (MSK) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1269692658; bh=HvEdz31Jhxu7hEtToYd75+KSRJjbjNPUWWbM5wZhCkY=; l=589; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=Unc76wVGupDZ90lplSPEmMfefnNz+XRyWBV96VMks7ek9UxkhYVoDt4skUmf3JLO/ +JWfJEuH90fNc7jo4vV8/LJYQ2JhR8v0G4HGcrhY8ZmUqGx0UioErEF1ZXS7meWM0H /vMR0LOsU1J+y7kPEguQXoMwqhEN1KQ+5na/R7Z8= Received: (from ache@localhost) by nagual.pp.ru (8.14.4/8.14.4/Submit) id o2RCOGmA095380; Sat, 27 Mar 2010 15:24:16 +0300 (MSK) (envelope-from ache) Date: Sat, 27 Mar 2010 15:24:14 +0300 From: Andrey Chernov To: d@delphij.net Message-ID: <20100327122413.GA95235@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , d@delphij.net, Dag-Erling Sm??rgrav , ports@FreeBSD.ORG, the_paya@gentoo.org, Alexander Logvinov , freebsd-arch@FreeBSD.ORG References: <4BACFE18.7010309@delphij.net> <86wrwylji0.fsf@ds4.des.no> <4BAD509B.3080805@delphij.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BAD509B.3080805@delphij.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: ports@FreeBSD.ORG, Dag-Erling Sm??rgrav , Alexander Logvinov , the_paya@gentoo.org, freebsd-arch@FreeBSD.ORG Subject: Re: [RFC] Reduce namespace pollution on zlib.h X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2010 12:37:36 -0000 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/