From 16b5a48d6cbdd027ec8a7a1652fb3402c0636625 Mon Sep 17 00:00:00 2001 From: Eugene Grosbein Date: Thu, 20 Aug 2020 09:06:14 +0000 Subject: net/echoping: fix build with -fno-common (clang 11 and gcc 10) PORTREVISION not bumped as it fixes build for FreeBSD 13. Reported by: pkg-fallout --- net/echoping/files/patch-http.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'net/echoping/files/patch-http.c') diff --git a/net/echoping/files/patch-http.c b/net/echoping/files/patch-http.c index e5960167d865..d3cb1d14c52f 100644 --- a/net/echoping/files/patch-http.c +++ b/net/echoping/files/patch-http.c @@ -1,6 +1,15 @@ ---- http.c.orig 2015-06-03 13:06:16 UTC +--- http.c.orig 2019-12-29 10:14:41 UTC +++ http.c -@@ -113,6 +113,8 @@ read_from_server(CHANNEL fs, short ssl, +@@ -6,7 +6,7 @@ + #include "HTParse.h" + + +-char big_recvline[MAXTOREAD]; ++static char big_recvline[MAXTOREAD]; + + char * + make_http_sendline(char *url, char *host, int port, int nocache) +@@ -113,6 +113,8 @@ read_from_server(CHANNEL fs, short ssl, boolean accept /* 204 No Content is not an error, message body is empty by definition, see RFC 2616 */ if (reply_code == 204) return 0; /* zero bytes is correct */ -- cgit v1.2.3