Date: Fri, 28 Nov 2003 12:54:48 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Aaron Walker <ka0ttic@cfl.rr.com> Cc: freebsd-questions@freebsd.org Subject: Re: compiler errors on freebsd; compiles fine on linux Message-ID: <20031128205448.GA86708@xor.obsecurity.org> In-Reply-To: <3FC75380.3070706@cfl.rr.com> References: <3FC75380.3070706@cfl.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 28, 2003 at 08:54:08AM -0500, Aaron Walker wrote: > I am attempting to write a http server (mainly just to learn), and I=20 > installed FreeBSD on my other box (I have Gentoo linux on my main box)=20 > to test the code to make sure its compatible with both BSD and Linux.=20 > The code compiles fine on linux, but I am getting weird compiler errors= =20 > under FBSD. Linux "cheats" by making certain system headers include other headers, in a way that is not specified by POSIX. Therefore, you can get away with code like yours on Linux that will fail on other POSIX-compliant systems like FreeBSD. Another poster has already told you which headers you're missing. Kris --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/x7YYWry0BWjoQKURArhLAJ4nC7YgQNGpRLwuhhyXi4Q0TDXOCQCfabRQ M2KYGLVO7Psr8Pdw7Jco7VE= =1oKT -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031128205448.GA86708>