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
[-- Attachment #1 --]
On Tue, Jul 10, 2001 at 05:48:01PM +0300, Konstantinos Konstantinidis wrote:
> "Robin P. Blanchard" wrote [snipped]:
> >
> > /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?
>
> Yes, include <sys/types.h> BEFORE <netinet/in.h> in the problematic
> files.
>
> I've seen this numerous times, perhaps netinet/in.h should include
> sys/types.h?
>
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>
--
Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org
--------------------------------------------------------
FreeBSD: The Power To Serve - http://www.FreeBSD.org
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: FreeBSD: The Power To Serve
iEYEARECAAYFAjtLG/cACgkQObaG4P6BelDy5gCeKVTdfWEn89AeSn3ynUQbFQxq
/dkAoKOG6Oecl55J6s12vVf4hR5EjhOc
=BQ5y
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010710111503.D8054>
