100-gcc4_fix.patch 677 B

12345678910111213141516171819202122
  1. --- a/include/mtd/jffs2-user.h
  2. +++ b/include/mtd/jffs2-user.h
  3. @@ -19,8 +19,6 @@
  4. #undef je32_to_cpu
  5. #undef jemode_to_cpu
  6. -extern int target_endian;
  7. -
  8. #define t16(x) ({ uint16_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); })
  9. #define t32(x) ({ uint32_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); })
  10. --- a/util/jffs3.h
  11. +++ b/util/jffs3.h
  12. @@ -177,8 +177,6 @@ union jffs3_node_union {
  13. #undef je32_to_cpu
  14. #undef jemode_to_cpu
  15. -extern int target_endian;
  16. -
  17. #define t16(x) ({ uint16_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_16(__b); })
  18. #define t32(x) ({ uint32_t __b = (x); (target_endian==__BYTE_ORDER)?__b:bswap_32(__b); })