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: Graham Bloice <graham.bloice@xxxxxxxxxxxxx>
Date: Mon, 26 Mar 2007 09:59:54 +0100
Ulf Lamping wrote:
> 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?
> 

>From the include files.

I haven't been able to check your changes yet, but I imagine that they
are close to my tests so that they should be OK.  I'll check tomorrow.

-- 
Regards,

Graham Bloice