Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.h @ 36286:ae4480935016 legacy-trunk
Patch #1103116: AF_NETLINK sockets basic support.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 14 Jan 2006 18:12:57 +0000 |
| parents | 57f630a9de26 |
| children | 9eeaa33f9640 |
line wrap: on
line diff
--- a/Modules/socketmodule.h Sat Jan 14 13:02:53 2006 +0000 +++ b/Modules/socketmodule.h Sat Jan 14 18:12:57 2006 +0000 @@ -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 @@ #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;
