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: Guy Harris <gharris@xxxxxxxxx>
Date: Wed, 29 Dec 2004 17:48:13 -0800
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; 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.)