]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #1657276: Make NETLINK_DNRTMSG conditional.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 13 Feb 2007 12:14:19 +0000 (12:14 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 13 Feb 2007 12:14:19 +0000 (12:14 +0000)
Will backport.

Misc/NEWS
Modules/socketmodule.c

index c6d3831b11af0228d4c0281228abaa5cb15701f4..355e98177276a821d15f66adcd8ba9a8e7e1225f 100644 (file)
--- 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
index 82461d4602e171d6b52058be45ead1eef7381538..7ef2e0431e86178e1ff6c753f9e09c77eae2dc65 100644 (file)
@@ -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