diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-05-29 12:39:00 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-05-29 12:39:00 +0200 |
commit | 837ffa9699a9cba47ae7921d2876afaccc027133 (patch) | |
tree | bf7570878375d9ae2d5a174322cac91d636250cc /regress/netcat.c | |
parent | upstream: Pass a NULL instead of zeroed out va_list from (diff) | |
download | openssh-837ffa9699a9cba47ae7921d2876afaccc027133.tar.xz openssh-837ffa9699a9cba47ae7921d2876afaccc027133.zip |
Omit ToS setting if we don't have IPV6_TCLASS too.
Fixes tests on old BSDs.
Diffstat (limited to '')
-rw-r--r-- | regress/netcat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/netcat.c b/regress/netcat.c index 24395263f..d583176f1 100644 --- a/regress/netcat.c +++ b/regress/netcat.c @@ -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; |