flashrom-arm-20170120-f5c27c4.diff 901 B

12345678910111213141516171819202122232425262728293031323334
  1. diff --git a/hwaccess.h b/hwaccess.h
  2. index 0299ecb..a6732c2 100644
  3. --- a/hwaccess.h
  4. +++ b/hwaccess.h
  5. @@ -24,11 +24,9 @@
  6. #ifndef __HWACCESS_H__
  7. #define __HWACCESS_H__ 1
  8. -#if defined (__i386__) || defined (__x86_64__)
  9. -#if defined(__GLIBC__)
  10. +#if defined (__i386__) || defined (__x86_64__) || defined(__arm__)
  11. #include <sys/io.h>
  12. #endif
  13. -#endif
  14. #if NEED_PCI == 1
  15. /*
  16. @@ -72,7 +70,6 @@
  17. #if !defined (__FLASHROM_BIG_ENDIAN__) && !defined (__FLASHROM_LITTLE_ENDIAN__)
  18. /* Nonstandard libc-specific macros for determining endianness. */
  19. -#if defined(__GLIBC__)
  20. #include <endian.h>
  21. #if BYTE_ORDER == LITTLE_ENDIAN
  22. #define __FLASHROM_LITTLE_ENDIAN__ 1
  23. @@ -80,7 +77,6 @@
  24. #define __FLASHROM_BIG_ENDIAN__ 1
  25. #endif
  26. #endif
  27. -#endif
  28. #if !defined (__FLASHROM_BIG_ENDIAN__) && !defined (__FLASHROM_LITTLE_ENDIAN__)
  29. #error Unable to determine endianness. Please add support for your arch or libc.