[source] mtd: fix building with glibc

LEDE Commits lede-commits at lists.infradead.org
Thu Aug 18 00:49:32 PDT 2016


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=1e71fca7777eeee39a941bdc05535b3e93eb01e9

commit 1e71fca7777eeee39a941bdc05535b3e93eb01e9
Author: Josua Mayer <josua.mayer97 at gmail.com>
AuthorDate: Wed Aug 17 10:27:12 2016 +0200

    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 at gmail.com>
---
 package/system/mtd/src/linksys_bootcount.c | 1 +
 1 file changed, 1 insertion(+)

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>



More information about the lede-commits mailing list