Fix musl build
authorJörg Krause <joerg.krause@embedded.rocks>
Wed, 22 Apr 2015 19:36:22 +0000 (21:36 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 8 May 2015 21:24:17 +0000 (17:24 -0400)
commit26e355d131a6b56ea78a156c1cee4f6ba0500b37
tree7b4c43d1c341b58ee5d7d930af6512c55979e4ef
parent1cdd9412002000aafcfb6f10cd02069adc66ba49
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 <joerg.krause@embedded.rocks>
Cc: Tom Rini <trini@konsulko.com>
include/image.h
tools/env/fw_env.c
tools/imagetool.h
tools/proftool.c