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: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Sat, 21 Feb 2004 15:05:13 +0100
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