diff options
Diffstat (limited to 'avahi-autoipd')
-rw-r--r-- | avahi-autoipd/iface-linux.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/avahi-autoipd/iface-linux.c b/avahi-autoipd/iface-linux.c index 6f2ca1f..13d2895 100644 --- a/avahi-autoipd/iface-linux.c +++ b/avahi-autoipd/iface-linux.c @@ -40,6 +40,15 @@ #include <avahi-common/llist.h> #include <avahi-common/malloc.h> +#include <linux/if_addr.h> +#ifndef IFLA_RTA +#define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) +#endif + +#ifndef IFA_RTA +#define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) +#endif + #include "iface.h" static int fd = -1; |