From fe917c36719de4916bfa4be0397d8c838b0d021d Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 14 Dec 2025 18:15:30 +0100 Subject: [PATCH] package/open-lldp: fix musl build with >= gcc-14.x GCC >= 14.x is stricter amount having access to the prototypes of functions being used, causing a build failure in open-lldp due to a missing include. This is only visible with musl probably because with other C libraries end up being included by some other header. Fixes: https://autobuild.buildroot.net/results/0f8/0f88cbe9152ab816b4ae17e1d84e8257f458eb4a/ Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- ...string.h-for-mem-function-prototypes.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 package/open-lldp/0001-clif-Include-string.h-for-mem-function-prototypes.patch diff --git a/package/open-lldp/0001-clif-Include-string.h-for-mem-function-prototypes.patch b/package/open-lldp/0001-clif-Include-string.h-for-mem-function-prototypes.patch new file mode 100644 index 0000000000..de67131c58 --- /dev/null +++ b/package/open-lldp/0001-clif-Include-string.h-for-mem-function-prototypes.patch @@ -0,0 +1,26 @@ +From f9d0099ac7d9041447cce4d3edd9577b4b52c09c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 29 Aug 2022 22:37:14 -0700 +Subject: [PATCH] clif: Include string.h for mem* function prototypes + +Signed-off-by: Khem Raj + +Upstream: https://github.com/intel/openlldp/commit/f9d0099ac7d9041447cce4d3edd9577b4b52c09c + +Signed-off-by: Bernd Kuhls +--- + clif.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/clif.c b/clif.c +index cad6f75..0758a7e 100644 +--- a/clif.c ++++ b/clif.c +@@ -32,6 +32,7 @@ + + #include + #include ++#include + #include + #include + #include -- 2.43.0