From 26e355d131a6b56ea78a156c1cee4f6ba0500b37 Mon Sep 17 00:00:00 2001 From: Jörg Krause Date: Wed, 22 Apr 2015 21:36:22 +0200 Subject: Fix musl build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch fixes cross-compiling U-Boot tools with the musl C library: * including is needed for ulong * defining _GNU_SOURCE is needed for loff_t Tested for target at91sam9261ek_dataflash_cs3. Signed-off-by: Jörg Krause Cc: Tom Rini --- tools/env/fw_env.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/env/fw_env.c') diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index 1173eea782..daa02a760e 100644 --- a/tools/env/fw_env.c +++ b/tools/env/fw_env.c @@ -8,6 +8,8 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#define _GNU_SOURCE + #include #include #include -- cgit