From: Victor Stinner Date: Tue, 25 Oct 2011 11:45:48 +0000 (+0200) Subject: Issue #12619: Expose socket.SO_BINDTODEVICE constant X-Git-Tag: v3.3.0a1~1061 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb98bed2992022d85d456c146a956e248be04000;p=thirdparty%2FPython%2Fcpython.git Issue #12619: Expose socket.SO_BINDTODEVICE constant --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 3618df17c753..c930ed3415e7 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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