diff -Nura dropbear-2011.54.orig/dbutil.c dropbear-2011.54/dbutil.c --- dropbear-2011.54.orig/dbutil.c 2011-11-08 09:48:15.000000000 -0300 +++ dropbear-2011.54/dbutil.c 2011-11-09 12:14:59.430074138 -0300 @@ -164,7 +164,7 @@ /* set the TOS bit for either ipv4 or ipv6 */ #ifdef IPTOS_LOWDELAY val = IPTOS_LOWDELAY; -#ifdef IPPROTO_IPV6 +#ifdef IPV6_TCLASS setsockopt(sock, IPPROTO_IPV6, IPV6_TCLASS, (void*)&val, sizeof(val)); #endif setsockopt(sock, IPPROTO_IP, IP_TOS, (void*)&val, sizeof(val));
This patch allows the recent 2011.54 release to build on non-IPv6
enabled toolchains.
Since IPPROTO_IPV6 is defined even if the toolchain is not IPv6-enabled
(uClibc 0.9.32) then just depend on IPV6_TCLASS for sockopt instead.
