Omit ToS setting if we don't have IPV6_TCLASS too.

Fixes tests on old BSDs.
This commit is contained in:
Darren Tucker 2020-05-29 20:39:00 +10:00
parent f85b118d21
commit 837ffa9699
1 changed files with 1 additions and 1 deletions

View File

@ -1187,7 +1187,7 @@ set_common_sockopts(int s, int af)
&x, sizeof(x)) == -1)
err(1, "setsockopt");
}
#ifdef IP_TOS
#if defined(IP_TOS) && defined(IPV6_TCLASS)
if (Tflag != -1) {
int proto, option;