From owner-freebsd-stable Tue Nov 10 09:21:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA20441 for freebsd-stable-outgoing; Tue, 10 Nov 1998 09:21:53 -0800 (PST) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA20434 for ; Tue, 10 Nov 1998 09:21:49 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.1/8.9.1) with ESMTP id JAA10329; Tue, 10 Nov 1998 09:21:33 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.1/8.9.1) id JAA19950; Tue, 10 Nov 1998 09:21:32 -0800 (PST) (envelope-from jdp@polstra.com) Date: Tue, 10 Nov 1998 09:21:32 -0800 (PST) Message-Id: <199811101721.JAA19950@vashon.polstra.com> To: deker@digitaladdiction.com Subject: Re: Questions about in.h and inet.h Newsgroups: polstra.freebsd.stable In-Reply-To: Organization: Polstra & Co., Seattle, WA Cc: stable@FreeBSD.ORG Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article , Rob Deker 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 > #include > > 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 and before the other two include files, like this: #include #include #include #include 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