Date: Tue, 10 Jul 2001 11:15:03 -0400 From: Chris Faulhaber <jedgar@fxp.org> To: Konstantinos Konstantinidis <kkonstan@duth.gr> Cc: "Robin P. Blanchard" <Robin_Blanchard@gactr.uga.edu>, stable@freebsd.org Subject: Re: system includes... Message-ID: <20010710111503.D8054@peitho.fxp.org> In-Reply-To: <3B4B15A1.2355700C@duth.gr>; from kkonstan@duth.gr on Tue, Jul 10, 2001 at 05:48:01PM %2B0300 References: <3B4B01B0.C0FAD7BC@gactr.uga.edu> <3B4B15A1.2355700C@duth.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
--T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 10, 2001 at 05:48:01PM +0300, Konstantinos Konstantinidis wrote: > "Robin P. Blanchard" wrote [snipped]: > >=20 > > /usr/include/netinet/in.h:233: syntax error before `in_addr_t' > > /usr/include/netinet/in.h:285: syntax error before `u_char' > > /usr/include/netinet6/in6.h:122: syntax error before `u_int8_t' > > building the latest CVS versions of lopster croaks with the following > > sorts of errors. seems i've seen this exact problem before with > > various other software. is there a quick and easy fix? >=20 > Yes, include <sys/types.h> BEFORE <netinet/in.h> in the problematic > files. >=20 > I've seen this numerous times, perhaps netinet/in.h should include > sys/types.h? >=20 Or perhaps programmers should simply follow the specs and include the correct headers... NAME inet_aton, inet_addr, inet_network, inet_ntoa, inet_ntop, inet_pton, inet_makeaddr, inet_lnaof, inet_netof - Internet address manipulation routines LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> --=20 Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org --T4sUOijqQbZv57TR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: FreeBSD: The Power To Serve iEYEARECAAYFAjtLG/cACgkQObaG4P6BelDy5gCeKVTdfWEn89AeSn3ynUQbFQxq /dkAoKOG6Oecl55J6s12vVf4hR5EjhOc =BQ5y -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR-- 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?20010710111503.D8054>