summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/src/ip.c2
1 files changed, 2 insertions, 0 deletions
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)