aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/mtd/src
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 /package/system/mtd/src
parentc8580f51ba8c9eef787bef7b3e259860858c0f62 (diff)
downloadupstream-1e71fca7777eeee39a941bdc05535b3e93eb01e9.tar.gz
upstream-1e71fca7777eeee39a941bdc05535b3e93eb01e9.tar.bz2
upstream-1e71fca7777eeee39a941bdc05535b3e93eb01e9.zip
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>
Diffstat (limited to 'package/system/mtd/src')
-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 95f75fe4ba..500ede4972 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>