mirror of
https://github.com/aria2/aria2.git
synced 2025-01-04 00:53:19 +00:00
Merge pull request #906 from aria2/fix-compile-error
Fix compile error with toolchain which lacks IPV6_TCLASS
This commit is contained in:
commit
5eb1f2c574
@ -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_));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user