From: Benjamin Peterson Date: Wed, 27 Nov 2013 15:18:54 +0000 (-0600) Subject: add SO_PRIORITY (closes #19802) X-Git-Tag: v3.4.0b2~455 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1314ef73d023f10abb6705c386d2a39d692d413b;p=thirdparty%2FPython%2Fcpython.git add SO_PRIORITY (closes #19802) Patch by Claudiu Popa. --- diff --git a/Misc/NEWS b/Misc/NEWS index bb37f9f0723c..4ed79503987d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -18,6 +18,8 @@ Core and Builtins Library ------- +- Issue #19802: Add socket.SO_PRIORITY. + - Issue #11508: Fixed uuid.getnode() and uuid.uuid1() on environment with virtual interface. Original patch by Kent Frazier. diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 5ba7f4c9904d..9e0da132688c 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -6241,6 +6241,9 @@ PyInit__socket(void) #ifdef SO_BINDTODEVICE PyModule_AddIntMacro(m, SO_BINDTODEVICE); #endif +#ifdef SO_PRIORITY + PyModule_AddIntMacro(m, SO_PRIORITY); +#endif /* Maximum number of connections for "listen" */ #ifdef SOMAXCONN