From: Martin v. Löwis Date: Tue, 13 Feb 2007 12:14:19 +0000 (+0000) Subject: Patch #1657276: Make NETLINK_DNRTMSG conditional. X-Git-Tag: v2.6a1~2179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1cc1d407b2eed5063a4c384411416cd7e302081;p=thirdparty%2FPython%2Fcpython.git Patch #1657276: Make NETLINK_DNRTMSG conditional. Will backport. --- diff --git a/Misc/NEWS b/Misc/NEWS index c6d3831b11af..355e98177276 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -364,6 +364,8 @@ Library Extension Modules ----------------- +- Patch #1657276: Make NETLINK_DNRTMSG conditional. + - Bug #1653736: Complain about keyword arguments to time.isoformat. - Bug #1486663: don't reject keyword arguments for subclasses of builtin diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 82461d4602e1..7ef2e0431e86 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -4383,7 +4383,9 @@ init_socket(void) PyModule_AddIntConstant(m, "NETLINK_ROUTE6", NETLINK_ROUTE6); #endif PyModule_AddIntConstant(m, "NETLINK_IP6_FW", NETLINK_IP6_FW); +#ifdef NETLINK_DNRTMSG PyModule_AddIntConstant(m, "NETLINK_DNRTMSG", NETLINK_DNRTMSG); +#endif #ifdef NETLINK_TAPBASE PyModule_AddIntConstant(m, "NETLINK_TAPBASE", NETLINK_TAPBASE); #endif