mtd: fix building with glibc
authorJosua Mayer <josua.mayer97@gmail.com>
Wed, 17 Aug 2016 08:27:12 +0000 (10:27 +0200)
committerJohn Crispin <john@phrozen.org>
Thu, 18 Aug 2016 07:49:18 +0000 (09:49 +0200)
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>
package/system/mtd/src/linksys_bootcount.c

index 95f75fe..500ede4 100644 (file)
@@ -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>