summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2013-09-28 13:31:43 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2013-09-28 13:31:43 +0100
commitb301a50b64f9ee8b32c53f06f5305211f5991b39 (patch)
tree24b9a194dccc6bd3871009e9877f7c0ccf196bc1
parent7142dacad308e47d3aa64fe410f1227cdf8b5a25 (diff)
Fix non-IPv6 compile on v6-less system
-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)