aboutsummaryrefslogtreecommitdiff
path: root/tools/env/fw_env.c
diff options
context:
space:
mode:
authorJörg Krause2015-04-22 21:36:22 +0200
committerTom Rini2015-05-08 17:24:17 -0400
commit26e355d131a6b56ea78a156c1cee4f6ba0500b37 (patch)
tree7b4c43d1c341b58ee5d7d930af6512c55979e4ef /tools/env/fw_env.c
parent1cdd9412002000aafcfb6f10cd02069adc66ba49 (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 <joerg.krause@embedded.rocks> Cc: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/env/fw_env.c')
-rw-r--r--tools/env/fw_env.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 1173eea7820..daa02a760e3 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 <errno.h>
#include <env_flags.h>
#include <fcntl.h>