Fix build on systems having ipv6 but lacking an IPV6_TCLASS define (GNU Hurd). Bug...
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 9 Feb 2014 21:03:27 +0000 (21:03 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Sun, 9 Feb 2014 21:03:27 +0000 (21:03 +0000)
By Samuel Thibault

src/src/ip.c

index ae629b0513d47a577e407f218f954630c43e9fff..d6e4e7ad850ca95e2a97049580598e1a16e6bd2f 100644 (file)
@@ -464,7 +464,7 @@ if (af == AF_INET)
   *level = IPPROTO_IP;
   *optname = IP_TOS;
   }
-#if HAVE_IPV6
+#if HAVE_IPV6 && defined(IPV6_TCLASS)
 else if (af == AF_INET6)
   {
   *level = IPPROTO_IPV6;