[PATCH 1/1] tools: mkeficapsule: dont use malloc.h

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sat Feb 5 20:16:08 CET 2022


malloc() functions are declared via stdlib.h. Including  malloc.h can lead
to build errors e.g. on OS-X.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 tools/mkeficapsule.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/mkeficapsule.c b/tools/mkeficapsule.c
index 243fd6e483..d6e3725e5f 100644
--- a/tools/mkeficapsule.c
+++ b/tools/mkeficapsule.c
@@ -5,7 +5,6 @@
  */
 
 #include <getopt.h>
-#include <malloc.h>
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>
-- 
2.34.1



More information about the U-Boot mailing list