prepare packages for kernel upgrade to 2.6.19
[openwrt/staging/chunkeey.git] / package / dnsmasq / patches / 102-rtnetlink.patch
1 --- dnsmasq-2.35/src/netlink.c.orig 2006-12-04 23:32:49.000000000 +0100
2 +++ dnsmasq-2.35/src/netlink.c 2006-12-04 23:33:18.000000000 +0100
3 @@ -17,6 +17,10 @@
4 #include <linux/types.h>
5 #include <linux/netlink.h>
6 #include <linux/rtnetlink.h>
7 +#ifndef IFA_RTA
8 +# include "linux/if_addr.h"
9 +# define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
10 +#endif
11
12 static struct iovec iov;
13