Skip to content
Snippets Groups Projects
Commit 958d46b5 authored by Jonathan Gray's avatar Jonathan Gray Committed by Tom Rini
Browse files

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: default avatarJonathan Gray <jsg@jsg.id.au>
Reviewed-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent 1e4fb783
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment