diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-01-16 00:11:43 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-01-16 00:11:43 +0000 |
commit | 0d97feeb2bff8e0bfff2e2dd99f58e82f167ab59 (patch) | |
tree | 5adab0ee481c8ec2b858cc33e114ff9dc539874f /tools/mtd-utils/include | |
parent | df366bdeb25c44a0425c01180ce5fae9a38022c9 (diff) | |
download | master-187ad058-0d97feeb2bff8e0bfff2e2dd99f58e82f167ab59.tar.gz master-187ad058-0d97feeb2bff8e0bfff2e2dd99f58e82f167ab59.tar.bz2 master-187ad058-0d97feeb2bff8e0bfff2e2dd99f58e82f167ab59.zip |
mtd-utils: fix compile on mac os x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19158 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/mtd-utils/include')
-rw-r--r-- | tools/mtd-utils/include/fls.h | 2 | ||||
-rw-r--r-- | tools/mtd-utils/include/linux/types.h | 18 |
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 0000000000..7514253cc0 --- /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 0000000000..559fac7a2c --- /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 */ |