fix ipv6 support in dnsmasq
[openwrt/svn-archive/archive.git] / openwrt / package / dnsmasq / patches / 101-ipv6.patch
1 --- dnsmasq-2.15.orig/src/config.h 2004-09-20 15:47:57.000000000 +0200
2 +++ dnsmasq-2.15/src/config.h 2004-09-20 23:21:10.000000000 +0200
3 @@ -78,8 +78,9 @@
4 /* We assume that systems which don't have IPv6
5 headers don't have ntop and pton either */
6
7 -#if defined(INET6_ADDRSTRLEN) && defined(IPV6_V6ONLY) && !defined(NO_IPV6)
8 +#if defined(INET6_ADDRSTRLEN) && !defined(NO_IPV6)
9 # define HAVE_IPV6
10 +# define IPV6_V6ONLY 26
11 # define ADDRSTRLEN INET6_ADDRSTRLEN
12 # if defined(SOL_IPV6)
13 # define IPV6_LEVEL SOL_IPV6