commit | 832af0bafb81e7427b062f73d0e7ece21c77a530 | [log] [tgz] |
---|---|---|
author | Simon Kelley <simon@thekelleys.org.uk> | Sun Jan 21 20:01:28 2007 +0000 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Thu Jan 05 17:31:13 2012 +0000 |
tree | b3f69b068585bebe50c8cbfe6e7c57479dfdbeaa | |
parent | 4011c4e05e93238eba05d7b51e50f69a2f2be122 [diff] [blame] |
import of dnsmasq-2.36.tar.gz
diff --git a/src/netlink.c b/src/netlink.c index 1be6c9a..b744ac9 100644 --- a/src/netlink.c +++ b/src/netlink.c
@@ -18,6 +18,14 @@ #include <linux/netlink.h> #include <linux/rtnetlink.h> +/* linux 2.6.19 buggers up the headers, patch it up here. */ +#ifndef IFA_RTA +# define IFA_RTA(r) \ + ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) + +# include <linux/if_addr.h> +#endif + static struct iovec iov; static void nl_err(struct nlmsghdr *h);