summaryrefslogtreecommitdiff
path: root/package/boot/uboot-envtools/patches
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
commitfbda3388f9b9cee47976519f924192169a55725f (patch)
tree4a2ac679cd469ad788597bcb5bf184ba780c8323 /package/boot/uboot-envtools/patches
parentf4ace532c81f639e4c98fcf6d7395af8c50f0425 (diff)
downloadmtk-20170518-fbda3388f9b9cee47976519f924192169a55725f.zip
mtk-20170518-fbda3388f9b9cee47976519f924192169a55725f.tar.gz
mtk-20170518-fbda3388f9b9cee47976519f924192169a55725f.tar.bz2
uboot-envtools: fix build with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39961
Diffstat (limited to 'package/boot/uboot-envtools/patches')
-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 0000000..eeed1d6
--- /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>