]> granicus.if.org Git - python/commitdiff
Patch #1657276: Make NETLINK_DNRTMSG conditional.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 13 Feb 2007 12:14:29 +0000 (12:14 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 13 Feb 2007 12:14:29 +0000 (12:14 +0000)
Misc/NEWS
Modules/socketmodule.c

index db784943add046356be9f31121e7c625e10d205d..640bc8dd8e59298181aed7f677d46712c1108476 100644 (file)
--- 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.
index c9f0388a302c4cabcfbfb2df83650adc3f09bb00..9f833271d85753c79d0a090c4ed899d542c64960 100644 (file)
@@ -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