summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2018-11-18 13:03:39 +1100
committerTom Rini <trini@konsulko.com>2018-11-26 22:52:12 -0500
commit958d46b53f3e3683a3d227a20c1935cbe88a8d65 (patch)
treed13b3a0c8064ffb730062359e820a6d9bd7dee96 /tools
parent1e4fb783b32437049baed460b3b899f3f5df77a5 (diff)
tools/file2include: don't use malloc.h for malloc
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/file2include.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/file2include.c b/tools/file2include.c
index b98af30a728..775440cba9f 100644
--- a/tools/file2include.c
+++ b/tools/file2include.c
@@ -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