Don't disable IPv6 if bulding with VS.
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 11 Nov 2010 21:39:40 +0000 (16:39 -0500)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 11 Nov 2010 21:39:40 +0000 (16:39 -0500)
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.

mono/metadata/socket-io.c

index 0370bede80ad63f7a2e75bb39cd0a13e8c2f5d8e..55ebd11e85f536e30720712a0d1c0af3ee92a7fe 100644 (file)
@@ -71,7 +71,7 @@
 
 #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