From 3d9618c61b059e1984d6fcd664752adc18e236fd Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 2 Jul 2020 17:08:56 -0700 Subject: [PATCH] shadowsocks-libev: fix compilation with GCC10 Signed-off-by: Rosen Penev --- net/shadowsocks-libev/Makefile | 2 +- net/shadowsocks-libev/patches/010-gcc10.patch | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 net/shadowsocks-libev/patches/010-gcc10.patch diff --git a/net/shadowsocks-libev/Makefile b/net/shadowsocks-libev/Makefile index 85c088550..d7a6f7844 100644 --- a/net/shadowsocks-libev/Makefile +++ b/net/shadowsocks-libev/Makefile @@ -14,7 +14,7 @@ include $(TOPDIR)/rules.mk # PKG_NAME:=shadowsocks-libev PKG_VERSION:=3.3.4 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/shadowsocks/shadowsocks-libev/releases/download/v$(PKG_VERSION) diff --git a/net/shadowsocks-libev/patches/010-gcc10.patch b/net/shadowsocks-libev/patches/010-gcc10.patch new file mode 100644 index 000000000..1049fc2f8 --- /dev/null +++ b/net/shadowsocks-libev/patches/010-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