From: Martin v. Löwis Date: Tue, 13 Feb 2007 12:14:29 +0000 (+0000) Subject: Patch #1657276: Make NETLINK_DNRTMSG conditional. X-Git-Tag: v2.5.1c1~113 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e335b2968f9a610328c33c077b3a91be246b7d4;p=thirdparty%2FPython%2Fcpython.git Patch #1657276: Make NETLINK_DNRTMSG conditional. --- diff --git a/Misc/NEWS b/Misc/NEWS index db784943add0..640bc8dd8e59 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -107,6 +107,8 @@ Core and builtins Extension Modules ----------------- +- Patch #1657276: Make NETLINK_DNRTMSG conditional. + - Bug #1653736: Complain about keyword arguments to time.isoformat. - operator.count() now raises an OverflowError when the count reaches sys.maxint. diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index c9f0388a302c..9f833271d857 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -4363,7 +4363,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