From f5588424e3182e3006f725536eebd7dc7b5bbfd4 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 16 Dec 2023 14:53:46 +0000 Subject: gentoo auto-resync : 16:12:2023 - 14:53:46 --- net-analyzer/httping/files/httping-2.9-c99.patch | 35 ++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 net-analyzer/httping/files/httping-2.9-c99.patch (limited to 'net-analyzer/httping/files') diff --git a/net-analyzer/httping/files/httping-2.9-c99.patch b/net-analyzer/httping/files/httping-2.9-c99.patch new file mode 100644 index 000000000000..48e07219d4e8 --- /dev/null +++ b/net-analyzer/httping/files/httping-2.9-c99.patch @@ -0,0 +1,35 @@ +https://github.com/folkertvanheusden/HTTPing/pull/12 + +From 684a6e255ea2f5b11a0548e5d99c2678be7563d9 Mon Sep 17 00:00:00 2001 +From: Sam James +Date: Sat, 16 Dec 2023 10:48:17 +0000 +Subject: [PATCH] http.c: add for malloc +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +GCC 14 makes implicit function declarations an error by default: +``` +http.c: In function ‘get_HTTP_headers’: +http.c:21:32: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] + 21 | char *buffer = (char *)malloc(len + 1); + | ^~~~~~ +http.c:16:1: note: include ‘’ or provide a declaration of ‘malloc’ + 15 | #include "utils.h" + +++ |+#include + 16 | +[...] +``` + +Bug: https://bugs.gentoo.org/920107 +Signed-off-by: Sam James +--- a/http.c ++++ b/http.c +@@ -2,6 +2,7 @@ + + #include + #include ++#include + #include + #include + #ifndef NO_SSL -- cgit v1.2.3