summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-06-14 08:36:07 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-06-14 08:36:07 (GMT)
commitd25cdc370d2469c37a780cf032ebcc86c41b3280 (patch)
tree037dbc11b0db1cb6cc4a118006f47b327bf4fd22
parentc06f5a45c3d2dbf92f1aaf6ec8ff6ff380597f62 (diff)
downloadcpython-d25cdc370d2469c37a780cf032ebcc86c41b3280.zip
cpython-d25cdc370d2469c37a780cf032ebcc86c41b3280.tar.gz
cpython-d25cdc370d2469c37a780cf032ebcc86c41b3280.tar.bz2
on windows, r64214 broke compilation with some recent SDKs,
because IPPROTO_IPV6 may be an enumeration member...
-rw-r--r--Modules/socketmodule.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index 44483cb..ef8d0fc 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -17,9 +17,10 @@
# include <ws2tcpip.h>
/* VC6 is shipped with old platform headers, and does not have MSTcpIP.h
* Separate SDKs have all the functions we want, but older ones don't have
- * any version information. I use IPPROTO_IPV6 to detect a decent SDK.
+ * any version information.
+ * I use SIO_GET_MULTICAST_FILTER to detect a decent SDK.
*/
-# ifdef IPPROTO_IPV6
+# ifdef SIO_GET_MULTICAST_FILTER
# include <MSTcpIP.h> /* for SIO_RCVALL */
# define HAVE_ADDRINFO
# define HAVE_SOCKADDR_STORAGE