uboot-envtools: fix build with musl
authorFelix Fietkau <nbd@openwrt.org>
Thu, 20 Mar 2014 13:51:27 +0000 (13:51 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 20 Mar 2014 13:51:27 +0000 (13:51 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39961

package/boot/uboot-envtools/patches/100-fw_env_gnu_source.patch [new file with mode: 0644]

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 (file)
index 0000000..eeed1d6
--- /dev/null
@@ -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>