[tools] mtd-utils: revert r23075
[openwrt/svn-archive/archive.git] / tools / mtd-utils / patches / 110-portability.patch
index 4be69046ff43e79b787500eea6d2f25035a39e20..d35b44658713bce48fad05776c137add4e5399f9 100644 (file)
          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 <asm/byteorder.h>
-+#if !defined(__u8) || !defined(__be16) || !defined(__be32) || !defined(__be64)
++#ifdef __linux__
+ #include <asm/byteorder.h>
++#else
 +#include <stdint.h>
 +typedef uint8_t __u8;
 +typedef uint16_t __be16;