Commit cb98bed2 authored by Victor Stinner's avatar Victor Stinner

Issue #12619: Expose socket.SO_BINDTODEVICE constant

parent 8b905bd9
......@@ -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
......
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