[Libssh] Windows patch

Aris Adamantiadis aris at 0xbadc0de.be
Tue Mar 4 23:13:00 CET 2008


Keisial a écrit :
> Alexander Lamaison wrote:
>> A couple of questions:
>>
>>   
>>> I attach a patch which should makes libssh work on any 32-bit windows
>>> with getaddrinfo.
>>>     
>> This should be any 32-bit windows according to MSDN.  I noticed that your
>> patch includes:
>>     #define _WIN32_WINNT 0x0501 //getaddrinfo, freeaddrinfo
>> Is such a high version of Windows (2k?) required for these two functions?
>>   
> MSDN says it's available since Windows 95, but the prototype isn't 
> included unless
> _WIN32_WINNT >= 0x0501
> 0x0501 means Windows Server 2003, Windows XP. Previous windows didn't 
> include a built-in
> getaddrinfo()
> 
I remember having compiled libssh under win2k some time ago, with 
getaddrinfo. the easier is to compile and test on w98 and 2K



More information about the Libssh mailing list