Ethereal-dev: Re: [Ethereal-dev] Error compiling Ethereal 0.9.15 under Win32

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 14 Oct 2003 11:32:54 -0700
On Sun, Oct 12, 2003 at 01:48:08PM +0200, Yaniv Kaul wrote:
> I'm trying to compile, and getting the error for wiretap:
> ascend-grammar.c
> wtap.h(366) : error C2079: 'ts' uses undefined struct 'timeval'
> wtap-int.h(117) : error C2079: 'reference_time' uses undefined struct 'timeval'
> wtap-int.h(180) : error C2079: 'start' uses undefined struct 'timeval'
> wtap-int.h(186) : error C2079: 'first_record_time' uses undefined struct 'timeval'
> 
> Any ideas?

I think "timeval", on Windows, is defined by one of the winsock header
files.  "wtap.h" includes <winsock2.h> if HAVE_WINSOCK2_H is defined; is
it defined in "wiretap/config.h"?  If not, is "wiretap/config.h"
identical to "wiretap/config.h.win32"?  If not, try removing
"wiretap/config.h" and rebuilding.  (I infer from the error messages
that you're using MSVC++, not Cygwin.)