[PATCH 3/8] stringlist: make header self-contained

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux