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 ... SYNOPSIS #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> ... 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. Dofri _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"