The header has static inline functions that reference free(), so include <malloc.h> which defines its prototype. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- 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