summaryrefslogtreecommitdiff
path: root/package/mtd-utils/patches/patch-include_mtd_ubi-media_h
blob: 33feabf92b7f56cc6ffb97b3ce8591b611b29dde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- mtd-utils-1.5.0.orig/include/mtd/ubi-media.h	2012-05-07 09:19:39.000000000 +0200
+++ mtd-utils-1.5.0/include/mtd/ubi-media.h	2014-03-30 15:49:26.000000000 +0200
@@ -30,7 +30,15 @@
 #ifndef __UBI_MEDIA_H__
 #define __UBI_MEDIA_H__
 
+#ifdef __linux__
 #include <asm/byteorder.h>
+#else
+#include <stdint.h> 
+typedef uint8_t __u8; 
+typedef uint16_t __be16; 
+typedef uint32_t __be32; 
+typedef uint64_t __be64; 
+#endif
 
 /* The version of UBI images supported by this implementation */
 #define UBI_VERSION 1