tools/file2include: don't use malloc.h for malloc
authorJonathan Gray <jsg@jsg.id.au>
Sun, 18 Nov 2018 02:03:39 +0000 (13:03 +1100)
committerTom Rini <trini@konsulko.com>
Tue, 27 Nov 2018 03:52:12 +0000 (22:52 -0500)
stdlib.h is the header for malloc since at least c89/c90.
Previously this would fail to build on OpenBSD and fallback to the wrong
header:

In file included from u-boot/tools/file2include.c:21:
u-boot/include/malloc.h:875:5: error: function-like macro
      'CONFIG_IS_ENABLED' is not defined

Signed-off-by: Jonathan Gray <jsg@jsg.id.au>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
tools/file2include.c

index b98af30a7281d675a58ba3ebb40f1ddf52f1ee54..775440cba9f1072e558494968b14a05eacd9e184 100644 (file)
@@ -18,7 +18,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
-#include <malloc.h>
 
 /* Size of the blocks written to the compressed file */
 #define BLOCK_SIZE 8