Date: Wed, 28 Jan 2004 00:27:19 -0200 From: "Giovanni P. Tirloni" <gpt@tirloni.org> To: Bruce Evans <bde@zeta.org.au> Cc: current@freebsd.org Subject: Re: ip.h parse error (gcc 3.3.3, 5.2-CURRENT, 2003/01/25) Message-ID: <20040128022717.GB22606@pixies.tirloni.org> In-Reply-To: <20040128004153.G6058@gamplex.bde.org> References: <20040127011923.GA76108@pixies.tirloni.org> <20040128004153.G6058@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
* Bruce Evans (bde@zeta.org.au) wrote: > > > 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.) Adding in_systm.h fixed it, thanks. I was following the man pages divert(4), bind(2), socket(2), etc. -- Giovanni P. Tirloni <gpt at tirloni.org> Fingerprint: 8C3F BEC5 79BD 3E9B EDB8 72F4 16E8 BA5E D031 5C26
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040128022717.GB22606>