[Patch #982665 ] add SO_EXCLUSIVEADDRUSE constant

This commit is contained in:
Andrew M. Kuchling 2004-07-10 14:19:21 +00:00
parent 5fcefdb326
commit 42851ab490
1 changed files with 4 additions and 0 deletions

View File

@ -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