Ethereal-dev: Re: [Ethereal-dev] Use of C99 code in 0.10.8

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Fri, 31 Dec 2004 03:26:47 +0100
On Wed, Dec 29, 2004 at 05:48:13PM -0800, Guy Harris wrote:
> Joerg Mayer wrote:
> 
> >/usr/include/pcap-bpf.h:64: error: syntax error before 'bpf_u_int32'
> >/usr/include/pcap-bpf.h:85: error: syntax error before 'u_int'
> >/usr/include/pcap-bpf.h:87: error: syntax error before '}' token
> 
> It probably doesn't like "u_int" in "typedef u_int bpf_u_int32"; perhaps 
> "u_int" isn't defined in -ansi -pedantic mode.  (It is defined in OS X; 

Correct.

> I wouldn't be surprised if it were defined in other BSDs as well.  glibc 
> is probably right - "u_int" isn't defined by ANSI and doesn't have a 
> leading underscore, so defining it in "strict ANSI" mode violates the 
> ANSI C spec.)

It's glibc (by now on Suse 9.2, but I think I reported that problem a year
or two ago to both, this list and the tcpdump-workers list for whichever
Suse was current then and whatever glibc-version it contained.

 Ciao
    Joerg

-- 
Joerg Mayer                                           <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.