summaryrefslogtreecommitdiff
path: root/oslib
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-02-03 08:32:19 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2016-02-03 08:34:51 -0800
commitd7bb6180f831091c468e5aa749b142efd5eddda4 (patch)
treeb08f11dbf9b496b584bdbf3137c2d8fd53238731 /oslib
parenta8b412146efdaa79adaa766dd192512bf2178ce7 (diff)
libmtd: compile fix for linux header changes.
In the Linux kernel source, mtd/mtd-user.h had a change 'mtd: mtd-user: remove stdint.h include' (137d36af4a53858b8db7ca83c8480247118b8bdf) This causes the uint8_t/uint64_t types to be undefined in libmtd.h now, as they were implicitly coming from it before. Import stdint.h explicitly into libmtd.h to resolve this. X-URL: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=137d36af4a53858b8db7ca83c8480247118b8bdf Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'oslib')
-rw-r--r--oslib/libmtd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/oslib/libmtd.h b/oslib/libmtd.h
index 3625de5..b5fd3f3 100644
--- a/oslib/libmtd.h
+++ b/oslib/libmtd.h
@@ -29,6 +29,9 @@
extern "C" {
#endif
+// Needed for uint8_t, uint64_t
+#include <stdint.h>
+
/* Maximum MTD device name length */
#define MTD_NAME_MAX 127
/* Maximum MTD device type string length */