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 b0c9887..98eed1b 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)