[U-Boot] [U-Boot, v3, 3/6] tools: include necessary headers explicitly
Tom Rini
trini at konsulko.com
Sun Jan 28 18:54:00 UTC 2018
On Sun, Jan 21, 2018 at 07:19:15PM +0900, Masahiro Yamada wrote:
> Several host-tools use "bool" type without including <stdbool.h>.
> This relies on the crappy header inclusion chain.
>
> tools/Makefile has the following line:
>
> HOST_EXTRACFLAGS += -include $(srctree)/include/libfdt_env.h \
>
> All host-tools are forced to include libfdt_env.h even if they are
> totally unrelated to FDT. Then, <stdbool.h> is indirectly included
> as follows:
>
> include/libfdt_env.h
> -> include/linux/types.h
> -> <stdbool.h>
>
> I am fixing this horrible crap. In advance, I need to add necessary
> include directives explicitly. tools/fdtgrep.c needs more; <fctl.h>
> for open() and <errno.h> for errno.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
> Reviewed-by: Joe Hershberger <joe.hershberger at ni.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/master, thanks!
--
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/20180128/8cd549dc/attachment.sig>
More information about the U-Boot
mailing list