diff options
author | Kyle J. McKay <mackyle@gmail.com> | 2017-12-05 15:22:15 -0800 |
---|---|---|
committer | Kyle J. McKay <mackyle@gmail.com> | 2017-12-05 15:22:15 -0800 |
commit | 26b40cb773c1ce0032436485246fff0adb82a5df (patch) | |
tree | 9162faa2e22d251b8f08418368d8587c5a2aba3f /patches/netcat.c.patch | |
parent | aff3a43fa099aab39927d93fc3f0cd861b15876d (diff) | |
download | portable-26b40cb773c1ce0032436485246fff0adb82a5df.tar.gz portable-26b40cb773c1ce0032436485246fff0adb82a5df.tar.bz2 portable-26b40cb773c1ce0032436485246fff0adb82a5df.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>
Diffstat (limited to 'patches/netcat.c.patch')
-rw-r--r-- | patches/netcat.c.patch | 2 |
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 |