Date: Tue, 4 Jan 2000 12:16:22 -0500 (EST) From: Zhihui Zhang <zzhang@cs.binghamton.edu> To: Mike Petrov <muwa@mail.ru> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Sockets programming Message-ID: <Pine.GSO.3.96.1000104121517.17105A-100000@sol.cs.binghamton.edu> In-Reply-To: <16887.000104@mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.1000104121517.17105A-100000>