Fix musl build
authorJörg Krause <joerg.krause@embedded.rocks>
Wed, 22 Apr 2015 19:36:22 +0000 (21:36 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:38:41 +0000 (22:38 +0200)
commit9de903c2d6f3f29a576b3a93d3a78388ff5e2bbb
treeacdc3beff0a4f499caa642e58f1a6e89e7be90f4
parent9582e10817ba4e0d464a30bb6e9891501f34d9db
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