Skip to content

Commit b1cc1d4

Browse files
committed
Patch #1657276: Make NETLINK_DNRTMSG conditional.
Will backport.
1 parent 91670d0 commit b1cc1d4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ Library
364364
Extension Modules
365365
-----------------
366366

367+
- Patch #1657276: Make NETLINK_DNRTMSG conditional.
368+
367369
- Bug #1653736: Complain about keyword arguments to time.isoformat.
368370

369371
- Bug #1486663: don't reject keyword arguments for subclasses of builtin

Modules/socketmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4383,7 +4383,9 @@ init_socket(void)
43834383
PyModule_AddIntConstant(m, "NETLINK_ROUTE6", NETLINK_ROUTE6);
43844384
#endif
43854385
PyModule_AddIntConstant(m, "NETLINK_IP6_FW", NETLINK_IP6_FW);
4386+
#ifdef NETLINK_DNRTMSG
43864387
PyModule_AddIntConstant(m, "NETLINK_DNRTMSG", NETLINK_DNRTMSG);
4388+
#endif
43874389
#ifdef NETLINK_TAPBASE
43884390
PyModule_AddIntConstant(m, "NETLINK_TAPBASE", NETLINK_TAPBASE);
43894391
#endif

0 commit comments

Comments
 (0)