tools/file2include: don't use malloc.h for malloc
PATCH 1/1 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
--- tools/file2include.c | 1 - 1 file changed, 1 deletion(-)
tools/file2include.c +0 -1
@@ -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
Signature · 1 line
2.19.1
PATCH 1/1 tools/file2include: don't use malloc.h for malloc
Quoted 9 lines · Jonathan Gray
stdlib.his 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 definedSigned-off-by Jonathan Gray <[email protected]>
Thanks for catchings this.
Copying Alex as maintainer.
Quoted 17 lines
--- tools/file2include.c | 1 - 1 file changed, 1 deletion(-)tools/file2include.c +0
-1@@ -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
Quoted 10 lines · Jonathan Gray
stdlib.his 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 definedSigned-off-by Jonathan Gray <[email protected]>Reviewed-by Heinrich Schuchardt <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181127/91fb262c/attachment.sig>