summaryrefslogtreecommitdiff
path: root/tools/mtd-utils/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-16 00:11:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-16 00:11:43 +0000
commit5c8bfc0c17302ea58de7f83fdffe81a2327526f3 (patch)
treeb1a4f1ac1c477b58e7e3f45e59cc012acec3d81a /tools/mtd-utils/include
parentf7c4735a19cd848d9e5e51da8f68443fdf113b34 (diff)
downloadmtk-20170518-5c8bfc0c17302ea58de7f83fdffe81a2327526f3.zip
mtk-20170518-5c8bfc0c17302ea58de7f83fdffe81a2327526f3.tar.gz
mtk-20170518-5c8bfc0c17302ea58de7f83fdffe81a2327526f3.tar.bz2
mtd-utils: fix compile on mac os x
SVN-Revision: 19158
Diffstat (limited to 'tools/mtd-utils/include')
-rw-r--r--tools/mtd-utils/include/fls.h2
-rw-r--r--tools/mtd-utils/include/linux/types.h18
2 files changed, 20 insertions, 0 deletions
diff --git a/tools/mtd-utils/include/fls.h b/tools/mtd-utils/include/fls.h
new file mode 100644
index 0000000..7514253
--- /dev/null
+++ b/tools/mtd-utils/include/fls.h
@@ -0,0 +1,2 @@
+#include <string.h>
+#define fls local_fls
diff --git a/tools/mtd-utils/include/linux/types.h b/tools/mtd-utils/include/linux/types.h
new file mode 100644
index 0000000..559fac7
--- /dev/null
+++ b/tools/mtd-utils/include/linux/types.h
@@ -0,0 +1,18 @@
+#ifndef _LINUX_TYPES_H
+#define _LINUX_TYPES_H
+
+#include <mtd/ubi-media.h>
+
+typedef uint16_t __u16;
+typedef uint32_t __u32;
+typedef uint64_t __u64;
+
+typedef __u16 __le16;
+typedef __u32 __le32;
+typedef __u64 __le64;
+typedef __u64 off64_t;
+
+typedef __u16 __sum16;
+typedef __u32 __wsum;
+
+#endif /* _LINUX_TYPES_H */