[Libssh] Windows patch

Alexander Lamaison lists at lammy.co.uk
Tue Mar 4 12:36:08 CET 2008


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?

> A dummy gai_strerror.c was copied from glibc because windows misses
> that function.

According to http://msdn2.microsoft.com/en-us/library/ms738514(VS.85).aspx
gai_strerror() is in Wspiapi.h.  Can this not be used?

I am fairly new to Windows programming so forgive me if these questions are
due to my ignorance.

Alex




More information about the Libssh mailing list