Date: Wed, 19 Jan 2005 04:18:40 +0100 From: Michael Nottebrock <michaelnottebrock@gmx.net> To: Chuck Swiger <cswiger@mac.com> Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: <sys/select.h> depends on <sys/types.h>...? Message-ID: <41EDD190.4010509@gmx.net> In-Reply-To: <41EDCBA1.4030909@mac.com> References: <0C3AB98B-69AD-11D9-B776-003065ABFD92@mac.com> <20050119012809.GA62189@xor.obsecurity.org> <41EDCBA1.4030909@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Swiger wrote: > Kris Kennaway wrote: > >> On Tue, Jan 18, 2005 at 06:59:53PM -0500, Charles Swiger wrote: > > [ ... ] > >>> This was on a 4.11 system, but the BZFlag code compiles on Linux, >>> Solaris, MacOS X, and Win32, so I'm not going to assume that BZFlag >>> is doing something wrong, either. >> >> >> Coding error ("All The World is Linux"). > > > OK, although note that MacOS X compiles foo.cxx without changes-- > 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. AFAIK, it's not so a much wrong-or-right issue (SUSv2 or similar standards don't require sys/select.h to setup the types it needs), but just a change of conventions (not having to include sys/types.h to make sys/select.h work is certainly convenient). If you go back a few linux kernel/solaris/macosx releases, you'd probably find the extra include requirement there, too. -- ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41EDD190.4010509>