Fix non-IPv6 compile on v6-less system
authorJeremy Harris <jgh146exb@wizmail.org>
Sat, 28 Sep 2013 12:31:43 +0000 (13:31 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 28 Sep 2013 12:31:43 +0000 (13:31 +0100)
src/src/ip.c

index b0c98878b6736b9f3365129d50a11ee10a22af4a..98eed1b934777be9e1d29a527df9eb7500acda28 100644 (file)
@@ -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)