applied patch from Kolja Nowak to use getaddrinfo() if supported in
* nanohttp.c include/wsockcompat.h: applied patch from Kolja Nowak
to use getaddrinfo() if supported in Windows build (bug# 317431).
diff --git a/include/wsockcompat.h b/include/wsockcompat.h
index 690048c..3e770f4 100644
--- a/include/wsockcompat.h
+++ b/include/wsockcompat.h
@@ -10,6 +10,11 @@
#else
#undef HAVE_ERRNO_H
#include <winsock2.h>
+#include <ws2tcpip.h>
+/* Check if ws2tcpip.h is a recent version which provides getaddrinfo() */
+#if defined(GetAddrInfo)
+#define HAVE_GETADDRINFO
+#endif
#endif
#if !defined SOCKLEN_T