refresh all package patches in the buildroot using quilt
[openwrt/svn-archive/archive.git] / package / dnsmasq / patches / 102-rtnetlink.patch
1 Index: dnsmasq-2.38/src/netlink.c
2 ===================================================================
3 --- dnsmasq-2.38.orig/src/netlink.c 2007-06-04 13:22:23.531277984 +0200
4 +++ dnsmasq-2.38/src/netlink.c 2007-06-04 13:22:23.814234968 +0200
5 @@ -17,6 +17,10 @@
6 #include <linux/types.h>
7 #include <linux/netlink.h>
8 #include <linux/rtnetlink.h>
9 +#ifndef IFA_RTA
10 +# include "linux/if_addr.h"
11 +# define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
12 +#endif
13
14 /* linux 2.6.19 buggers up the headers, patch it up here. */
15 #ifndef IFA_RTA