Only use IPv6 features on Windows versions that support it (>=XP)

libusb-1-0
Bill Somerville 2016-02-12 15:30:41 +00:00
rodzic cc21c64662
commit 04c545b9b9
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -439,7 +439,7 @@ int main (int argc, char *argv[])
exit (1);
}
#ifdef __MINGW32__
#if defined(__MINGW32__) && HAVE_WS2TCPIP_H
/* allow IPv4 mapped to IPv6 clients, MS default this to 1! */
sockopt = 0;
if (setsockopt(sock_listen, IPPROTO_IPV6, IPV6_V6ONLY,

Wyświetl plik

@ -352,7 +352,7 @@ int main (int argc, char *argv[])
exit (1);
}
#ifdef __MINGW32__
#if defined(__MINGW32__) && HAVE_WS2TCPIP_H
/* allow IPv4 mapped to IPv6 clients, MS default this to 1! */
sockopt = 0;
if (setsockopt(sock_listen, IPPROTO_IPV6, IPV6_V6ONLY,