1 From: Jörg Krause <joerg.krause@embedded.rocks>
2 Date: Wed, 22 Apr 2015 19:36:22 +0000 (+0200)
3 Subject: Fix musl build
4 X-Git-Tag: v2015.07-rc2~281
5 X-Git-Url: http://git.denx.de/?p=u-boot.git;a=commitdiff_plain;h=26e355d131a6b56ea78a156c1cee4f6ba0500b37;hp=1cdd9412002000aafcfb6f10cd02069adc66ba49
9 This patch fixes cross-compiling U-Boot tools with the musl C library:
10 * including <sys/types.h> is needed for ulong
11 * defining _GNU_SOURCE is needed for loff_t
13 Tested for target at91sam9261ek_dataflash_cs3.
15 Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
16 Cc: Tom Rini <trini@konsulko.com>
19 diff --git a/include/image.h b/include/image.h
20 index 3844be6..60b924a 100644
27 +#include <sys/types.h>
29 /* new uImage format support enabled on host */
31 diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
32 index 1173eea..daa02a7 100644
33 --- a/tools/env/fw_env.c
34 +++ b/tools/env/fw_env.c
36 * SPDX-License-Identifier: GPL-2.0+
42 #include <env_flags.h>
44 diff --git a/tools/imagetool.h b/tools/imagetool.h
45 index 3e15b4e..b7874f4 100644
46 --- a/tools/imagetool.h
47 +++ b/tools/imagetool.h
52 +#include <sys/types.h>
55 #include <u-boot/sha1.h>
56 diff --git a/tools/proftool.c b/tools/proftool.c
57 index 3482951..9ce7a77 100644
58 --- a/tools/proftool.c
59 +++ b/tools/proftool.c
63 #include <sys/param.h>
64 +#include <sys/types.h>