summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosua Mayer <josua.mayer97@gmail.com>2016-08-17 10:27:12 +0200
committerJohn Crispin <john@phrozen.org>2016-08-18 09:49:18 +0200
commit1e71fca7777eeee39a941bdc05535b3e93eb01e9 (patch)
treeb0fba7f341ac6dd028caf97bc2781044f4a39c59
parentc8580f51ba8c9eef787bef7b3e259860858c0f62 (diff)
downloadmtk-20170518-1e71fca7777eeee39a941bdc05535b3e93eb01e9.zip
mtk-20170518-1e71fca7777eeee39a941bdc05535b3e93eb01e9.tar.gz
mtk-20170518-1e71fca7777eeee39a941bdc05535b3e93eb01e9.tar.bz2
mtd: fix building with glibc
src/linksys_bootcount.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>
-rw-r--r--package/system/mtd/src/linksys_bootcount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/system/mtd/src/linksys_bootcount.c b/package/system/mtd/src/linksys_bootcount.c
index 95f75fe..500ede4 100644
--- a/package/system/mtd/src/linksys_bootcount.c
+++ b/package/system/mtd/src/linksys_bootcount.c
@@ -28,6 +28,7 @@
#include <endian.h>
#include <string.h>
#include <errno.h>
+#include <stdint.h>
#include <sys/ioctl.h>
#include <mtd/mtd-user.h>