Date: Tue, 18 Jan 2005 21:53:21 -0500 From: Chuck Swiger <cswiger@mac.com> To: Kris Kennaway <kris@obsecurity.org> Cc: freebsd-ports@freebsd.org Subject: Re: <sys/select.h> depends on <sys/types.h>...? Message-ID: <41EDCBA1.4030909@mac.com> In-Reply-To: <20050119012809.GA62189@xor.obsecurity.org> References: <0C3AB98B-69AD-11D9-B776-003065ABFD92@mac.com> <20050119012809.GA62189@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41EDCBA1.4030909>