For the record, getaddrinfo() was introduced in Windows 2000 Professional and Server, see end of http://msdn.microsoft.com/en-us/library/ms738520(VS.85).aspx
(it's only missing from 2000 Workstation).
you just need to add -DWINVER=0x501 to your CFLAGS to be able to have it properly declared (and linked to) with should be able to compile it with mingw
hope this helps
Daniel P. Berrange wrote:If that works, that's fine.
Well MinGW already builds fine with getaddrinfo(), so no need for a GPL
header providing Wspiapi.h there. Since this is only needed for a few
Win builds, why not just make the include conditional on whether that header actually exists. eg
#ifdef HAVE_WSPIAPI_H
#include <Wspiapi.h>
#endif
Regards,
Anthony Liguori
Regards,
Daniel