Ethereal-dev: Re: [Ethereal-dev] Problem compiling capture.c

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

From: Michael Tuexen <Michael.Tuexen@xxxxxxxxxxxxxxxxx>
Date: Sat, 21 Feb 2004 15:32:39 +0100
Ulf,
thanks for the fix.
Best regards
Michael
On 21. Feb 2004, at 15:05 Uhr, Ulf Lamping wrote:

Michael Tuexen wrote:

Dear all,

I have problems in compiling the CVS version of capture.c

gcc complains about

gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I./wiretap -I/usr/local/include -DINET6 -no-cpp-precomp -D_U_="__attribute__((unused))" -Wall -W -g -O2 -I/usr/local/include -I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -c `test -f 'capture.c' || echo './'`capture.c
capture.c:210: error: parse error before '*' token
capture.c:211: error: parse error before "loop_data"
capture.c:212: error: parse error before "loop_data"

looking at the code it looks like the
#ifndef _WIN32
#endif

stuff should go after the
typedef struct _lopp_data {
} loop_data
stuff.

At least this fixes the problem under MacOS X.

Sorry, my fault!

I moved the loop_data before the function declarations, so it should be fixed now.

Regards, ULFL

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev