aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-envtools
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-20 13:51:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-03-20 13:51:27 +0000
commitc6019944e30296383137f5406843f2a31b4a856b (patch)
tree2adc23b673d0a6aa2767323654038a0aaca0607b /package/boot/uboot-envtools
parentc8564bfc333129c48d3cc6cab868523062057937 (diff)
downloadmaster-187ad058-c6019944e30296383137f5406843f2a31b4a856b.tar.gz
master-187ad058-c6019944e30296383137f5406843f2a31b4a856b.tar.bz2
master-187ad058-c6019944e30296383137f5406843f2a31b4a856b.zip
uboot-envtools: fix build with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39961 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/boot/uboot-envtools')
-rw-r--r--package/boot/uboot-envtools/patches/100-fw_env_gnu_source.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/boot/uboot-envtools/patches/100-fw_env_gnu_source.patch b/package/boot/uboot-envtools/patches/100-fw_env_gnu_source.patch
new file mode 100644
index 0000000000..eeed1d637c
--- /dev/null
+++ b/package/boot/uboot-envtools/patches/100-fw_env_gnu_source.patch
@@ -0,0 +1,10 @@
+--- a/tools/env/fw_env.c
++++ b/tools/env/fw_env.c
+@@ -8,6 +8,7 @@
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
++#define _GNU_SOURCE
+ #include <errno.h>
+ #include <env_flags.h>
+ #include <fcntl.h>