From owner-freebsd-questions Tue Jan 4 10:38:27 2000 Delivered-To: freebsd-questions@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 002D814A14 for ; Tue, 4 Jan 2000 10:38:24 -0800 (PST) (envelope-from zzhang@cs.binghamton.edu) Received: from sol.cs.binghamton.edu (cs1-gw.cs.binghamton.edu [128.226.171.72]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with SMTP id NAA14095; Tue, 4 Jan 2000 13:30:11 -0500 (EST) Date: Tue, 4 Jan 2000 12:16:22 -0500 (EST) From: Zhihui Zhang To: Mike Petrov Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Sockets programming In-Reply-To: <16887.000104@mail.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 4 Jan 2000, Mike Petrov wrote: > Hello freebsd-questions, > > I written simple tcp-socket program. > It compiles and works _perfectly_ on Linuxes and FreeBSD v2.2.8. > > When I try to compile it on FreeBSD v3.4 (RELEASE-3.4), > gcc(2.7.2.3) prints many errors: > > Why is it happening? > > /usr/include/netinet/in.h:224: parse error before `u_int32_t' > /usr/include/netinet/in.h:276: parse error before `u_char' > /usr/include/netinet/in.h:278: parse error before `sin_port' > /usr/include/netinet/in.h:281: parse error before `}' > /usr/include/netinet/in.h:291: field `ip_dst' has incomplete type Make sure that you include the correct header files, like sys/types.h. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message