From fe2226b988c96c2380686b6a68665fd830445ddd Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 8 May 2017 22:45:12 +0900 Subject: [PATCH] Fix compile error with toolchain which lacks IPV6_TCLASS --- src/SocketCore.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SocketCore.cc b/src/SocketCore.cc index bce02fd6..d0a205f1 100644 --- a/src/SocketCore.cc +++ b/src/SocketCore.cc @@ -581,8 +581,8 @@ void SocketCore::applyIpDscp() if (family == AF_INET) { setSockOpt(IPPROTO_IP, IP_TOS, &ipDscp_, sizeof(ipDscp_)); } -#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || \ - defined(__OpenBSD__) || defined(__DragonFly__) +#if defined(IPV6_TCLASS) || defined(__linux__) || defined(__FreeBSD__) || \ + defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) else if (family == AF_INET6) { setSockOpt(IPPROTO_IPV6, IPV6_TCLASS, &ipDscp_, sizeof(ipDscp_)); }