Ethereal-dev: [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 14:51:48 +0100
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.

Best regards
Michael