summaryrefslogtreecommitdiffstats
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-03-01 08:31:07 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-03-01 08:31:07 (GMT)
commit272cb40e31fd2eb194509bcc028998d324ba42c2 (patch)
treed5ac74392f35109c121c5f6d18fe8df687e80e39 /PC/pyconfig.h
parent31e233aa7a02ed8e95227527223db947567830b4 (diff)
downloadcpython-272cb40e31fd2eb194509bcc028998d324ba42c2.zip
cpython-272cb40e31fd2eb194509bcc028998d324ba42c2.tar.gz
cpython-272cb40e31fd2eb194509bcc028998d324ba42c2.tar.bz2
Patch #520062: Support IPv6 with VC.NET.
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index 6402f1d..b412f77 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -408,7 +408,11 @@ typedef int pid_t;
/* #undef size_t */
/* Define to `int' if <sys/types.h> doesn't define. */
+#if _MSC_VER + 0 >= 1300
+/* VC.NET typedefs socklen_t in ws2tcpip.h. */
+#else
#define socklen_t int
+#endif
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1