Issue #12619: Expose socket.SO_BINDTODEVICE constant

This commit is contained in:
Victor Stinner 2011-10-25 13:45:48 +02:00
parent 8b905bd9d4
commit cb98bed299
1 changed files with 3 additions and 0 deletions

View File

@ -5772,6 +5772,9 @@ PyInit__socket(void)
#ifdef LOCAL_PEERCRED
PyModule_AddIntConstant(m, "LOCAL_PEERCRED", LOCAL_PEERCRED);
#endif
#ifdef SO_BINDTODEVICE
PyModule_AddIntMacro(m, SO_BINDTODEVICE);
#endif
/* Maximum number of connections for "listen" */
#ifdef SOMAXCONN