compiler errors on freebsd; compiles fine on linux
imp at hell.is
Fri Nov 28 06:56:44 PST 2003
On Fri, 28 Nov 2003 08:54:08 -0500
Aaron Walker <ka0ttic at cfl.rr.com> wrote:
> I am attempting to write a http server (mainly just to learn), and I
> installed FreeBSD on my other box (I have Gentoo linux on my main box)
> to test the code to make sure its compatible with both BSD and Linux.
> The code compiles fine on linux, but I am getting weird compiler errors
> under FBSD.
> all my source files compile fine except main.c:
> #include <netinet/in.h>
> #include <sys/types.h>
> #include "lwhttpd.h"
> #include "server.h"
man 3 inet
The includes must be in that order.
sys/types.h and sys/socket.h define the types that are used in netint/in.h .
It will work on Linux as well, to my experience at least.
More information about the freebsd-questions