From b301a50b64f9ee8b32c53f06f5305211f5991b39 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 28 Sep 2013 13:31:43 +0100 Subject: [PATCH 1/1] Fix non-IPv6 compile on v6-less system --- src/src/ip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/src/ip.c b/src/src/ip.c index b0c98878b..98eed1b93 100644 --- a/src/src/ip.c +++ b/src/src/ip.c @@ -464,11 +464,13 @@ if (af == AF_INET) *level = IPPROTO_IP; *optname = IP_TOS; } +#if HAVE_IPV6 else if (af == AF_INET6) { *level = IPPROTO_IPV6; *optname = IPV6_TCLASS; } +#endif else { DEBUG(D_transport) -- 2.30.2