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

Wireshark-dev: Re: [Wireshark-dev] Compilation failure on MSVC 6.0 with Platform SDK

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Sat, 24 Mar 2007 03:49:34 +0100
Graham Bloice wrote:
When compiling with MSVC 6.0 and the platform SDK, there are failures
due to the redefinition of sockaddr_storage in capture_wpcap_packet.c
and gtk/capture_if_details_dlg.c.

The definition is conditional on the version of MSVC used, whereas the
actual definition depends on the version of winsock defined, which is
indicated by the symbol _WINSOCK2API_.  I think that using this symbol
would be preferable.

Ah, thanks for pointing this out. At the time I was implementing this, I got the strong feeling that there might be a better way - but I was just too lazy to find out :-)

I've updated both files in SVN 21162.

Could you have a try if it works with MSVC 6 & SDK?

BTW: Is this official MSDN, or something you've got from the include files?

Regards, ULFL