patch-include_mtd_ubi-media_h 515 B

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