diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-01-14 18:12:57 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-01-14 18:12:57 (GMT) |
commit | 11017b172dc2525079fe8a6f17650b2fc048c9e6 (patch) | |
tree | ca1c91cb4a3752fdff3c277f8e85958024bc84e0 /Modules/socketmodule.h | |
parent | 015f72b254019027c73a2f13925c77d0dbcdb028 (diff) | |
download | cpython-11017b172dc2525079fe8a6f17650b2fc048c9e6.zip cpython-11017b172dc2525079fe8a6f17650b2fc048c9e6.tar.gz cpython-11017b172dc2525079fe8a6f17650b2fc048c9e6.tar.bz2 |
Patch #1103116: AF_NETLINK sockets basic support.
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r-- | Modules/socketmodule.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index 384d595..0c5bfad 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -32,6 +32,12 @@ # undef AF_UNIX #endif +#ifdef HAVE_LINUX_NETLINK_H +# include <linux/netlink.h> +#else +# undef AF_NETLINK +#endif + #ifdef HAVE_BLUETOOTH_BLUETOOTH_H #include <bluetooth/bluetooth.h> #include <bluetooth/rfcomm.h> @@ -78,6 +84,9 @@ typedef union sock_addr { #ifdef AF_UNIX struct sockaddr_un un; #endif +#ifdef AF_NETLINK + struct sockaddr_nl nl; +#endif #ifdef ENABLE_IPV6 struct sockaddr_in6 in6; struct sockaddr_storage storage; |