From 78222ff9dcdb2ff8fe7ff6f7cabefa8de0e542c4 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 15 Sep 2010 23:50:31 +0000 Subject: mtd-utils: revert r23075 SVN-Revision: 23076 --- tools/mtd-utils/patches/110-portability.patch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools/mtd-utils/patches/110-portability.patch') diff --git a/tools/mtd-utils/patches/110-portability.patch b/tools/mtd-utils/patches/110-portability.patch index 4be69046ff..d35b446587 100644 --- a/tools/mtd-utils/patches/110-portability.patch +++ b/tools/mtd-utils/patches/110-portability.patch @@ -42,12 +42,13 @@ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ --- a/include/mtd/ubi-media.h +++ b/include/mtd/ubi-media.h -@@ -30,7 +30,13 @@ +@@ -30,7 +30,15 @@ #ifndef __UBI_MEDIA_H__ #define __UBI_MEDIA_H__ --#include -+#if !defined(__u8) || !defined(__be16) || !defined(__be32) || !defined(__be64) ++#ifdef __linux__ + #include ++#else +#include +typedef uint8_t __u8; +typedef uint16_t __be16; -- cgit v1.2.3