When building with Cygwin or a cross-compiler there are at least 4
functions that are not present (inet_ntop, getaddrinfo, getnameinfo and
freeaddringo) so in these cases we just disable IPv6. Note that
Socket.OSSupportsIPv6 will still return true.
When building with VS, IPv6 will be supported without a problem.
#include "mono/io-layer/socket-wrappers.h"
-#ifdef HOST_WIN32
+#if defined(HOST_WIN32) && !defined(_MSC_VER)
/* This is a kludge to make this file build under cygwin:
* w32api/ws2tcpip.h has definitions for some AF_INET6 values and
* prototypes for some but not all required functions (notably