Date: Tue, 18 Jan 2005 20:41:47 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Chuck Swiger <cswiger@mac.com> Cc: freebsd-ports@freebsd.org Subject: Re: <sys/select.h> depends on <sys/types.h>...? Message-ID: <20050119044147.GA10058@xor.obsecurity.org> In-Reply-To: <41EDE335.1000704@mac.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <sys/types.h> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050119044147.GA10058>