summaryrefslogtreecommitdiffstats
path: root/regress/netcat.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-05-29 12:39:00 +0200
committerDarren Tucker <dtucker@dtucker.net>2020-05-29 12:39:00 +0200
commit837ffa9699a9cba47ae7921d2876afaccc027133 (patch)
treebf7570878375d9ae2d5a174322cac91d636250cc /regress/netcat.c
parentupstream: Pass a NULL instead of zeroed out va_list from (diff)
downloadopenssh-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.c2
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;