mirror of https://github.com/python/cpython.git
Get socketmodule to build after adding netlink support.
This commit is contained in:
parent
4678dc818f
commit
658516617c
|
@ -3993,7 +3993,9 @@ init_socket(void)
|
|||
PyModule_AddIntConstant(m, "NETLINK_FIREWALL", NETLINK_FIREWALL);
|
||||
PyModule_AddIntConstant(m, "NETLINK_TCPDIAG", NETLINK_TCPDIAG);
|
||||
PyModule_AddIntConstant(m, "NETLINK_NFLOG", NETLINK_NFLOG);
|
||||
#ifdef NETLINK_XFRM
|
||||
PyModule_AddIntConstant(m, "NETLINK_XFRM", NETLINK_XFRM);
|
||||
#endif
|
||||
PyModule_AddIntConstant(m, "NETLINK_ARPD", NETLINK_ARPD);
|
||||
PyModule_AddIntConstant(m, "NETLINK_ROUTE6", NETLINK_ROUTE6);
|
||||
PyModule_AddIntConstant(m, "NETLINK_IP6_FW", NETLINK_IP6_FW);
|
||||
|
|
|
@ -33,6 +33,9 @@
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_LINUX_NETLINK_H
|
||||
# ifdef HAVE_ASM_TYPES_H
|
||||
# include <asm/types.h>
|
||||
# endif
|
||||
# include <linux/netlink.h>
|
||||
#else
|
||||
# undef AF_NETLINK
|
||||
|
|
Loading…
Reference in New Issue