From: Martin v. Löwis Date: Fri, 3 Oct 2003 13:56:20 +0000 (+0000) Subject: Patch #813445: Add missing socket.IPPROTO_IPV6. Backported to 2.3. X-Git-Tag: v2.4a1~1474 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0f1734e447aa8106d96253ebb73a4a618ec41d8;p=thirdparty%2FPython%2Fcpython.git Patch #813445: Add missing socket.IPPROTO_IPV6. Backported to 2.3. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 36b4b3d78925..8fd59636002e 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -3749,6 +3749,9 @@ init_socket(void) #ifdef IPPROTO_IPV4 PyModule_AddIntConstant(m, "IPPROTO_IPV4", IPPROTO_IPV4); #endif +#ifdef IPPROTO_IPV6 + PyModule_AddIntConstant(m, "IPPROTO_IPV6", IPPROTO_IPV6); +#endif #ifdef IPPROTO_IPIP PyModule_AddIntConstant(m, "IPPROTO_IPIP", IPPROTO_IPIP); #endif