summaryrefslogtreecommitdiffstats
path: root/tools/mtd-utils/patches/110-portability.patch
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-09-15 23:50:31 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-09-15 23:50:31 +0000
commit51aae6cda34cb149fc2bb4364db8d2359995d423 (patch)
tree1a22d64822e0c75b9938315ea0adfda6fc0c7aa5 /tools/mtd-utils/patches/110-portability.patch
parentc7af995072ed5588ccd2e4e3b6c64ad9f839b62c (diff)
[tools] mtd-utils: revert r23075
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23076 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/mtd-utils/patches/110-portability.patch')
-rw-r--r--tools/mtd-utils/patches/110-portability.patch7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/mtd-utils/patches/110-portability.patch b/tools/mtd-utils/patches/110-portability.patch
index 4be69046f..d35b44658 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 <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;