aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-envtools
diff options
context:
space:
mode:
authorJosua Mayer <josua.mayer97@gmail.com>2016-08-18 16:06:05 +0200
committerZoltan HERPAI <wigyori@uid0.hu>2016-08-18 16:06:05 +0200
commitd6c4db5f9bdd9ff502043a8ec6f5c948dd2f9e84 (patch)
tree00afc0c8b0b8f1a0ff9d42b3a601bbe28c30eadc /package/boot/uboot-envtools
parentc730772eb974bb3aec7827abea60a67848c3fb63 (diff)
downloadmaster-187ad058-d6c4db5f9bdd9ff502043a8ec6f5c948dd2f9e84.tar.gz
master-187ad058-d6c4db5f9bdd9ff502043a8ec6f5c948dd2f9e84.tar.bz2
master-187ad058-d6c4db5f9bdd9ff502043a8ec6f5c948dd2f9e84.zip
u-boot-envtools: fix building with glibc
tools/env/fw_env.c misses to include stdint.h. Apparently musl doesn't mind and includes this header by default, but glibc does not and causes the build to fail. Signed-off-by: Josua Mayer <josua.mayer97@gmail.com>
Diffstat (limited to 'package/boot/uboot-envtools')
-rw-r--r--package/boot/uboot-envtools/patches/400-u-boot-2015.10-stdint.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/boot/uboot-envtools/patches/400-u-boot-2015.10-stdint.patch b/package/boot/uboot-envtools/patches/400-u-boot-2015.10-stdint.patch
new file mode 100644
index 0000000000..395674fd8b
--- /dev/null
+++ b/package/boot/uboot-envtools/patches/400-u-boot-2015.10-stdint.patch
@@ -0,0 +1,13 @@
+diff -Naur u-boot-2015.10.orig/tools/env/fw_env.c u-boot-2015.10/tools/env/fw_env.c
+--- u-boot-2015.10.orig/tools/env/fw_env.c 2016-06-24 12:42:31.152391850 +0200
++++ u-boot-2015.10/tools/env/fw_env.c 2016-06-24 12:42:59.080391754 +0200
+@@ -21,7 +21,8 @@
+ #include <sys/types.h>
+ #include <sys/ioctl.h>
+ #include <sys/stat.h>
+-#include <unistd.h>
++#include <unistd.h>
++#include <stdint.h>
+
+ #ifdef MTD_OLD
+ # include <stdint.h>