u-boot-envtools: fix building with glibc
[openwrt/openwrt.git] / package / boot / uboot-envtools / patches / 400-u-boot-2015.10-stdint.patch
1 diff -Naur u-boot-2015.10.orig/tools/env/fw_env.c u-boot-2015.10/tools/env/fw_env.c
2 --- u-boot-2015.10.orig/tools/env/fw_env.c 2016-06-24 12:42:31.152391850 +0200
3 +++ u-boot-2015.10/tools/env/fw_env.c 2016-06-24 12:42:59.080391754 +0200
4 @@ -21,7 +21,8 @@
5 #include <sys/types.h>
6 #include <sys/ioctl.h>
7 #include <sys/stat.h>
8 -#include <unistd.h>
9 +#include <unistd.h>
10 +#include <stdint.h>
11
12 #ifdef MTD_OLD
13 # include <stdint.h>