|
Re: dnsmasq failing to compile: msg#00023network.dns.dnsmasq.general
Philip Wall wrote: > Switched to kernel sources 2.6.18.1 and it built fine so must be an > issue between dnsmasq and the 2.6.19 kernel. > > Philip Wall > The following patch seems to fix it. Cheers, Simon. --- src/netlink.c.orig 2006-12-05 14:37:43.000000000 +0000 +++ src/netlink.c 2006-12-05 14:36:56.000000000 +0000 @@ -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); |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: dnsmasq failing to compile: 00023, Simon Kelley |
|---|---|
| Next by Date: | Re: dnsmasq failing to compile: 00023, Philip Wall |
| Previous by Thread: | Re: dnsmasq failing to compilei: 00023, Simon Kelley |
| Next by Thread: | Re: dnsmasq failing to compile: 00023, Philip Wall |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |