diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-15 22:45:54 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-15 22:45:54 +0000 |
commit | 297f110b2c778d484fb6ef9f55825fe13191c50a (patch) | |
tree | 8f2846acde03dc9202963d3f20ad083c03bd0d56 /tools/mtd-utils/patches/110-portability.patch | |
parent | ab5d942622d8bb1f7fc7653634538c29e368c2fb (diff) | |
download | upstream-297f110b2c778d484fb6ef9f55825fe13191c50a.tar.gz upstream-297f110b2c778d484fb6ef9f55825fe13191c50a.tar.bz2 upstream-297f110b2c778d484fb6ef9f55825fe13191c50a.zip |
mtd-utils: do not rely on host kernel headers, redefine the integer types instead (#7950)
SVN-Revision: 23075
Diffstat (limited to 'tools/mtd-utils/patches/110-portability.patch')
-rw-r--r-- | tools/mtd-utils/patches/110-portability.patch | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/mtd-utils/patches/110-portability.patch b/tools/mtd-utils/patches/110-portability.patch index d35b446587..4be69046ff 100644 --- a/tools/mtd-utils/patches/110-portability.patch +++ b/tools/mtd-utils/patches/110-portability.patch @@ -42,13 +42,12 @@ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ --- a/include/mtd/ubi-media.h +++ b/include/mtd/ubi-media.h -@@ -30,7 +30,15 @@ +@@ -30,7 +30,13 @@ #ifndef __UBI_MEDIA_H__ #define __UBI_MEDIA_H__ -+#ifdef __linux__ - #include <asm/byteorder.h> -+#else +-#include <asm/byteorder.h> ++#if !defined(__u8) || !defined(__be16) || !defined(__be32) || !defined(__be64) +#include <stdint.h> +typedef uint8_t __u8; +typedef uint16_t __be16; |