2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 05:28:00 +00:00

check if IPV6_TCLASS is defined

This commit is contained in:
Mark Andrews 2013-03-23 19:04:41 +11:00
parent 3a32ac2a72
commit 72b0326c20

View File

@ -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))
{