From owner-freebsd-ports@FreeBSD.ORG Wed Jan 19 04:41:49 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFA9216A4CF for ; Wed, 19 Jan 2005 04:41:49 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.199.47.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C7FA43D54 for ; Wed, 19 Jan 2005 04:41:49 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 14D1E512CB; Tue, 18 Jan 2005 20:41:48 -0800 (PST) Date: Tue, 18 Jan 2005 20:41:47 -0800 From: Kris Kennaway To: Chuck Swiger Message-ID: <20050119044147.GA10058@xor.obsecurity.org> References: <0C3AB98B-69AD-11D9-B776-003065ABFD92@mac.com> <20050119012809.GA62189@xor.obsecurity.org> <41EDCBA1.4030909@mac.com> <41EDD190.4010509@gmx.net> <41EDE335.1000704@mac.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tThc/1wpZn/ma/RB" Content-Disposition: inline In-Reply-To: <41EDE335.1000704@mac.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-ports@freebsd.org Subject: Re: depends on ...? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 04:41:49 -0000 --tThc/1wpZn/ma/RB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 18, 2005 at 11:33:57PM -0500, Chuck Swiger wrote: > Michael Nottebrock wrote: > >Chuck Swiger wrote: > [ ... ] > >>OK, although note that MacOS X compiles foo.cxx without changes--=20 > >>sys/select.h will pull in what it needs to work on that platform: > > > >IIRC, FreeBSD 5.x doesn't need the extra include either.= =20 > >AFAIK, it's not so a much wrong-or-right issue (SUSv2 or similar=20 > >standards don't require sys/select.h to setup the types it needs), but= =20 > >just a change of conventions (not having to include sys/types.h to make= =20 > >sys/select.h work is certainly convenient). >=20 > OK, thanks for the additional thoughts. >=20 > I'm happy to see system header files move in a direction that facilitates= =20 > use-- ie, they know what they depend on and ensure that what they need ge= ts=20 > pulled in. After all, if people are going to spend the time & effort to= =20 > make system header files...erm, idempotent?, then one might as well take= =20 > advantage of that and of any compiler support available (precompiled=20 > headers). >=20 > >If you go back a few linux kernel/solaris/macosx releases, you'd=20 > >probably find the extra include requirement there, too. >=20 > Sure. Only, if an earlier version of Linux 2.2 or OS X needed sys/types.= h=20 > to use sys/select.h, then wouldn't the BZFlag sources know to use it by= =20 > now...? AFAIK this is a long-standing difference (modulo any recent FreeBSD changes), and the cause of a lot of software unportability from the Linux world. Kris --tThc/1wpZn/ma/RB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB7eULWry0BWjoQKURAncqAKDhNT75+oJIC8hGde+FTk4/LfJagwCg0ZPL D3gMt5U+jF/58twIVEi2jR0= =ye9N -----END PGP SIGNATURE----- --tThc/1wpZn/ma/RB--