summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-02-13 12:14:29 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-02-13 12:14:29 (GMT)
commit1e335b2968f9a610328c33c077b3a91be246b7d4 (patch)
tree97412bc40fe7065906e4ce3dc4461ecc922ab47e /Modules
parentf7f888a2f8c1a2fff0fbfc32b61374bc033ab99b (diff)
downloadcpython-1e335b2968f9a610328c33c077b3a91be246b7d4.zip
cpython-1e335b2968f9a610328c33c077b3a91be246b7d4.tar.gz
cpython-1e335b2968f9a610328c33c077b3a91be246b7d4.tar.bz2
Patch #1657276: Make NETLINK_DNRTMSG conditional.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index c9f0388..9f83327 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