diff options
| author | Jörg Krause <[email protected]> | 2015-04-22 21:36:22 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2015-05-08 17:24:17 -0400 |
| commit | 26e355d131a6b56ea78a156c1cee4f6ba0500b37 (patch) | |
| tree | 7b4c43d1c341b58ee5d7d930af6512c55979e4ef /tools/imagetool.h | |
| parent | 1cdd9412002000aafcfb6f10cd02069adc66ba49 (diff) | |
Fix musl build
This patch fixes cross-compiling U-Boot tools with the musl C library:
* including <sys/types.h> is needed for ulong
* defining _GNU_SOURCE is needed for loff_t
Tested for target at91sam9261ek_dataflash_cs3.
Signed-off-by: Jörg Krause <[email protected]>
Cc: Tom Rini <[email protected]>
Diffstat (limited to 'tools/imagetool.h')
| -rw-r--r-- | tools/imagetool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/imagetool.h b/tools/imagetool.h index 3e15b4e22b9..b7874f47cd2 100644 --- a/tools/imagetool.h +++ b/tools/imagetool.h @@ -16,6 +16,7 @@ #include <stdlib.h> #include <string.h> #include <sys/stat.h> +#include <sys/types.h> #include <time.h> #include <unistd.h> #include <u-boot/sha1.h> |
