Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2004 00:48:18 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        "Giovanni P. Tirloni" <gpt@tirloni.org>
Cc:        current@freebsd.org
Subject:   Re: ip.h parse error (gcc 3.3.3, 5.2-CURRENT, 2003/01/25)
Message-ID:  <20040128004153.G6058@gamplex.bde.org>
In-Reply-To: <20040127011923.GA76108@pixies.tirloni.org>
References:  <20040127011923.GA76108@pixies.tirloni.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 26 Jan 2004, Giovanni P. Tirloni wrote:

>  I'm getting an error while trying to compile a small piece of code of
>  mime that was compiling fine yesterday when the system was 5.1-RELEASE.
>
>  These are the headers that I'm using:
>
>  #include <sys/types.h>
>  #include <sys/socket.h>
>  #include <netinet/in.h>
>  #include <netinet/ip.h>
>
>  The only error I get is this one:
>
>  > gcc -o divert_exceeded divert_exceeded.c
>  In file included from divert_exceeded.c:4:
>  /usr/include/netinet/ip.h:164: error: syntax error before "n_long"
>  /usr/include/netinet/ip.h:167: error: syntax error before "n_long"

I determined minimal prerequistes for most userland headers 4-5 years
ago.  <netinet/in_systm.h> was a prerequisite for <netinet/ip.h> then
and this apparently hasn't changed.  (Its other prerequisites are
<sys/types.h> and <netinet/in.h> which you already have.)

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040128004153.G6058>