From 72b0326c20d353eb8d59a85f63bb5701e8c85bc7 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Sat, 23 Mar 2013 19:04:41 +1100 Subject: [PATCH] check if IPV6_TCLASS is defined --- lib/isc/unix/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/unix/socket.c b/lib/isc/unix/socket.c index d38d6e3cdf..77c06fd80c 100644 --- a/lib/isc/unix/socket.c +++ b/lib/isc/unix/socket.c @@ -1526,7 +1526,7 @@ build_msghdr_send(isc__socket_t *sock, isc_socketevent_t *dev, } } #endif -#ifdef IPPROTO_IPV6 +#if defined(IPPROTO_IPV6) && defined(IPV6_TCLASS) if (sock->pf == AF_INET6 && ((isc_net_probedscp() & ISC_NET_DSCPPKTV6) != 0)) {