From df48bad981e68e1d8d8fc731dbdcfa447c31ccee Mon Sep 17 00:00:00 2001 From: LGA1150 Date: Fri, 3 Jul 2020 20:41:24 +0800 Subject: [PATCH] shadowsocksr: fix compilation with GCC10 Fixes: #206. --- .../patches/0004-gcc10.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/lean/shadowsocksr-libev/patches/0004-gcc10.patch diff --git a/package/lean/shadowsocksr-libev/patches/0004-gcc10.patch b/package/lean/shadowsocksr-libev/patches/0004-gcc10.patch new file mode 100644 index 0000000000..1049fc2f81 --- /dev/null +++ b/package/lean/shadowsocksr-libev/patches/0004-gcc10.patch @@ -0,0 +1,20 @@ +--- a/src/http.h ++++ b/src/http.h +@@ -29,6 +29,6 @@ + #include + #include "protocol.h" + +-const protocol_t *const http_protocol; ++extern const protocol_t *const http_protocol; + + #endif +--- a/src/tls.h ++++ b/src/tls.h +@@ -28,6 +28,6 @@ + + #include "protocol.h" + +-const protocol_t *const tls_protocol; ++extern const protocol_t *const tls_protocol; + + #endif