On Fri, 28 Nov 2003 08:54:08 -0500
Aaron Walker <[EMAIL PROTECTED]> 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.
[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"