[PATCH 3/8] stringlist: make header self-contained
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Jul 16 04:58:29 PDT 2024
The header has static inline functions that reference free(), so include
<malloc.h> which defines its prototype.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
include/stringlist.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/stringlist.h b/include/stringlist.h
index 01491082ea02..60b96ecb8319 100644
--- a/include/stringlist.h
+++ b/include/stringlist.h
@@ -3,6 +3,7 @@
#define __STRINGLIST_H
#include <linux/list.h>
+#include <malloc.h>
struct string_list {
struct list_head list;
--
2.39.2
More information about the barebox
mailing list