summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-07-10 14:19:21 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-07-10 14:19:21 (GMT)
commit42851ab4905aea2e1253fa46bbb718abddeeab84 (patch)
tree50e999c1ee33bd66807aa095ecca48db6b77cd61 /Modules
parent5fcefdb32600fa64d3160f031d48fb033150fdb3 (diff)
downloadcpython-42851ab4905aea2e1253fa46bbb718abddeeab84.zip
cpython-42851ab4905aea2e1253fa46bbb718abddeeab84.tar.gz
cpython-42851ab4905aea2e1253fa46bbb718abddeeab84.tar.bz2
[Patch #982665 ] add SO_EXCLUSIVEADDRUSE constant
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 6e2166c..1b17e31 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -3883,6 +3883,10 @@ init_socket(void)
#ifdef SO_REUSEADDR
PyModule_AddIntConstant(m, "SO_REUSEADDR", SO_REUSEADDR);
#endif
+#ifdef SO_EXCLUSIVEADDRUSE
+ PyModule_AddIntConstant(m, "SO_EXCLUSIVEADDRUSE", SO_EXCLUSIVEADDRUSE);
+#endif
+
#ifdef SO_KEEPALIVE
PyModule_AddIntConstant(m, "SO_KEEPALIVE", SO_KEEPALIVE);
#endif