shadowsocksr: fix compilation with GCC10

Fixes: #206.
This commit is contained in:
LGA1150 2020-07-03 20:41:24 +08:00 committed by CN_SZTL
parent 37c5551697
commit df48bad981
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -0,0 +1,20 @@
--- a/src/http.h
+++ b/src/http.h
@@ -29,6 +29,6 @@
#include <stdio.h>
#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