<sys/select.h> depends on <sys/types.h>...?
kris at obsecurity.org
Tue Jan 18 17:28:11 PST 2005
On Tue, Jan 18, 2005 at 06:59:53PM -0500, Charles Swiger wrote:
> Hi, all--
> I was trying to update the BZFlag port, only I've run into a problem
> which can be condensed down to the following minimal test code:
> 120-ns1% cat foo.cxx
> #include <iostream>
> #include <sys/select.h>
> static int foo = 0;
> 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 `;'
> Adding an include for <sys/types.h> works, so I can patch BZFlag to do
> so as well, but I wanted to run this by the peanut gallery and see
> whether this is regarded as a problem with the system headers, or a
> coding error on the part of the developers.
> [ 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").
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20050118/ad2b48eb/attachment.bin
More information about the freebsd-ports