aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle J. McKay <mackyle@gmail.com>2017-12-05 15:22:15 -0800
committerBrent Cook <bcook@openbsd.org>2017-12-11 04:32:06 -0600
commitac9a73f6956bbf6277db9bc0377eafc139c4db37 (patch)
tree31b8ccfd403c63b99749533170505d0ae44bdc70
parent71d9fd9709537fae263456db0d7c58fe7d82c6e8 (diff)
downloadportable-ac9a73f6956bbf6277db9bc0377eafc139c4db37.tar.gz
portable-ac9a73f6956bbf6277db9bc0377eafc139c4db37.tar.bz2
portable-ac9a73f6956bbf6277db9bc0377eafc139c4db37.zip
netcat.c.patch: eliminate syntax error from patch
If the target system does not define IPV6_TCLASS, this part of the patch handles that with an ENOPROTOOPT error rather than failing to compile. Unfortunately it's missing a trailing semicolon leading to a compilation error. Add the missing semicolon to fix the problem. Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
-rw-r--r--patches/netcat.c.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/patches/netcat.c.patch b/patches/netcat.c.patch
index 7ba6b5f..35f88db 100644
--- a/patches/netcat.c.patch
+++ b/patches/netcat.c.patch
@@ -134,7 +134,7 @@
134 err(1, "set IPv6 traffic class"); 134 err(1, "set IPv6 traffic class");
135+#else 135+#else
136+ else if (af == AF_INET6) { 136+ else if (af == AF_INET6) {
137+ errno = ENOPROTOOPT 137+ errno = ENOPROTOOPT;
138+ err(1, "set IPv6 traffic class not supported"); 138+ err(1, "set IPv6 traffic class not supported");
139+ } 139+ }
140+#endif 140+#endif