Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: RE: [Ethereal-dev] Problem building on win32

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

From: Gerald Combs <gerald@xxxxxxxxxxxx>
Date: Tue, 3 Dec 2002 09:29:06 -0600 (CST)
On Tue, 3 Dec 2002, Graham Bloice wrote:

> According to Source Navigator (and windows find) the only ?? places
> including winsock.h are Packet32.h and BPF.h in WinPCap, and 109 headers in
> Net-SNMP which I can't be bothered to enumerate.
> 
> Winsock2.h is only included by 7 headers, 2 in wiretap and 5 in epan.
> 
> Are we fighting a fundamental mismatch here, and should Ethereal revert back
> to winsock.h ?  I'll try a test build later today.

C:\Program Files\Microsoft Visual Studio\VC98\Include\WINDOWS.H contains
the following (on my system, at least):

#if(_WIN32_WINNT >= 0x0400)
#include <winsock2.h>
#include <mswsock.h>
#else
#include <winsock.h>
#endif /* _WIN32_WINNT >=  0x0400 */

Could this be part of the issue?