<sys/select.h> depends on <sys/types.h>...?

Chuck Swiger cswiger at mac.com
Tue Jan 18 18:51:25 PST 2005


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:

12-cube% cat foo.cxx
#include <iostream>
#include <sys/select.h>

static int foo = 0;
13-cube% c++ -c foo.cxx
14-cube% uname -a
Darwin cube.pkix.net 7.7.0 Darwin Kernel Version 7.7.0: Sun Nov  7 16:06:51 
PST 2004; root:xnu/xnu-517.9.5.obj~1/RELEASE_PPC  Power Macintosh powerpc
15-cube% c++ -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)

	-----

This being said, "man kqueue" on FreeBSD documents sys/types.h as being 
required, so if I want the port to work on existing FreeBSD systems, I'll need 
to see that it gets included.

Anyway, I've gotten enough of an answer to proceed, thanks for the response...

-- 
-Chuck


More information about the freebsd-ports mailing list