Date: Tue, 18 Jan 2005 17:28:09 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Charles Swiger <cswiger@mac.com> Cc: freebsd-ports@freebsd.org Subject: Re: <sys/select.h> depends on <sys/types.h>...? Message-ID: <20050119012809.GA62189@xor.obsecurity.org> In-Reply-To: <0C3AB98B-69AD-11D9-B776-003065ABFD92@mac.com> References: <0C3AB98B-69AD-11D9-B776-003065ABFD92@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 18, 2005 at 06:59:53PM -0500, Charles Swiger wrote: > Hi, all-- >=20 > I was trying to update the BZFlag port, only I've run into a problem=20 > which can be condensed down to the following minimal test code: >=20 > 120-ns1% cat foo.cxx > #include <iostream> > #include <sys/select.h> >=20 > static int foo =3D 0; >=20 > 121-ns1% c++ -c foo.cxx > In file included from /usr/include/sys/select.h:40, > from foo.cxx:2: > /usr/include/sys/event.h:53: syntax error before `;' > /usr/include/sys/event.h:55: syntax error before `;' > In file included from foo.cxx:2: > /usr/include/sys/select.h:47: syntax error before `;' >=20 > Adding an include for <sys/types.h> works, so I can patch BZFlag to do=20 > so as well, but I wanted to run this by the peanut gallery and see=20 > whether this is regarded as a problem with the system headers, or a=20 > coding error on the part of the developers. >=20 > [ This was on a 4.11 system, but the BZFlag code compiles on Linux,=20 > Solaris, MacOS X, and Win32, so I'm not going to assume that BZFlag is=20 > doing something wrong, either. ] Coding error ("All The World is Linux"). Kris --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB7bepWry0BWjoQKURAo6QAJwJKhyJCc2VoqC56jsxHu2EJROURQCfUXWA /rrSyRYdQuiSQEl+fxSC0ls= =Pvk2 -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050119012809.GA62189>