summaryrefslogtreecommitdiff
path: root/PC
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-04-24 15:37:34 +0000
committerGuido van Rossum <guido@python.org>2000-04-24 15:37:34 +0000
commit31e0b7a28c560b94a43ddec4e8a3b2e34c3f66d7 (patch)
treed475c293705f22e55464021b0bf4e447c0fa8b96 /PC
parent7b0bf1db266e8a98ffa3e980770420d3e9d8eb0f (diff)
downloadcpython-31e0b7a28c560b94a43ddec4e8a3b2e34c3f66d7.tar.gz
Add definition of socklen_t so that socketmodule.c will compile on Windows.
Diffstat (limited to 'PC')
-rw-r--r--PC/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/PC/config.h b/PC/config.h
index 915b1c2d8a..729981985f 100644
--- a/PC/config.h
+++ b/PC/config.h
@@ -308,6 +308,9 @@ typedef int pid_t;
/* Define to `unsigned' if <sys/types.h> doesn't define. */
/* #undef size_t */
+/* Define to `int' if <sys/types.h> doesn't define. */
+#define socklen_t int
+
/* Define if you have the ANSI C header files. */
#define STDC_HEADERS 1