upgrade dnsmasq (#1975)
[openwrt-10.03/.git] / package / dnsmasq / patches / 102-rtnetlink.patch
1 Index: dnsmasq-2.39/src/netlink.c
2 ===================================================================
3 --- dnsmasq-2.39.orig/src/netlink.c     2007-06-26 19:16:31.000000000 +0200
4 +++ dnsmasq-2.39/src/netlink.c  2007-06-26 19:16:31.000000000 +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