Date: Tue, 10 Nov 1998 09:21:32 -0800 (PST) From: John Polstra <jdp@polstra.com> To: deker@digitaladdiction.com Cc: stable@FreeBSD.ORG Subject: Re: Questions about in.h and inet.h Message-ID: <199811101721.JAA19950@vashon.polstra.com> In-Reply-To: <Pine.BSF.3.96.981110115048.8854F-100000@nyx.digitaladdiction.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.BSF.3.96.981110115048.8854F-100000@nyx.digitaladdiction.com>, Rob Deker <deker@digitaladdiction.com> wrote: > > I sent this to freebsd-questions and got nothing back, so I thought I'd > try here. Apologies to thos seeing this again. -hackers would have been a better second try. > So, I'm trying to compile DaVinci (a big IRC botlike thing) on a > machine running 3.0-RELEASE and it uses /usr/include/netinet/in.h and > /usr/include/arpa/inet.h. No big deal right? > > > Well, gcc seems to think that these header files are broken. To prove that > I wasn't on crack, I wrote the following stupid little bit of code: > > > #include <netinet/in.h> > #include <arpa/inet.h> > > main() {} > > an tried to compile it. What I got back was: > > In file included from foo.c:1: > /usr/include/netinet/in.h:223: parse error before `u_int32_t' [...] Include <sys/types.h> and <sys/socket.h> before the other two include files, like this: #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811101721.JAA19950>