summaryrefslogtreecommitdiff
path: root/net/sniproxy/files
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-22 20:36:45 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-22 20:36:45 +0000
commitfbc199c7c7e345de33f50865b13d7fec926e920a (patch)
tree908aa1b504d0b742cb5ec8a2d9d648bd401662a1 /net/sniproxy/files
parentUnbreak by making fetchable again, using GH. (diff)
Fix build with -fno-common and remove the now osbolete -fcommon option.
While here fix 2 white-space issues reported by portlint. Approved by: krion (maintainer)
Diffstat (limited to 'net/sniproxy/files')
-rw-r--r--net/sniproxy/files/patch-src_http.h10
-rw-r--r--net/sniproxy/files/patch-src_tls.h10
2 files changed, 20 insertions, 0 deletions
diff --git a/net/sniproxy/files/patch-src_http.h b/net/sniproxy/files/patch-src_http.h
new file mode 100644
index 000000000000..dcaf75cbc06b
--- /dev/null
+++ b/net/sniproxy/files/patch-src_http.h
@@ -0,0 +1,10 @@
+--- src/http.h.orig 2018-12-06 04:14:58 UTC
++++ src/http.h
+@@ -29,6 +29,6 @@
+ #include <stdio.h>
+ #include "protocol.h"
+
+-const struct Protocol *const http_protocol;
++extern const struct Protocol *const http_protocol;
+
+ #endif
diff --git a/net/sniproxy/files/patch-src_tls.h b/net/sniproxy/files/patch-src_tls.h
new file mode 100644
index 000000000000..af3540daa759
--- /dev/null
+++ b/net/sniproxy/files/patch-src_tls.h
@@ -0,0 +1,10 @@
+--- src/tls.h.orig 2018-12-06 04:14:58 UTC
++++ src/tls.h
+@@ -28,6 +28,6 @@
+
+ #include "protocol.h"
+
+-const struct Protocol *const tls_protocol;
++extern const struct Protocol *const tls_protocol;
+
+ #endif