Commit 42851ab4 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Patch #982665 ] add SO_EXCLUSIVEADDRUSE constant

parent 5fcefdb3
...@@ -3883,6 +3883,10 @@ init_socket(void) ...@@ -3883,6 +3883,10 @@ init_socket(void)
#ifdef SO_REUSEADDR #ifdef SO_REUSEADDR
PyModule_AddIntConstant(m, "SO_REUSEADDR", SO_REUSEADDR); PyModule_AddIntConstant(m, "SO_REUSEADDR", SO_REUSEADDR);
#endif #endif
#ifdef SO_EXCLUSIVEADDRUSE
PyModule_AddIntConstant(m, "SO_EXCLUSIVEADDRUSE", SO_EXCLUSIVEADDRUSE);
#endif
#ifdef SO_KEEPALIVE #ifdef SO_KEEPALIVE
PyModule_AddIntConstant(m, "SO_KEEPALIVE", SO_KEEPALIVE); PyModule_AddIntConstant(m, "SO_KEEPALIVE", SO_KEEPALIVE);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment