Geen omschrijving

101-fix-cross-compile-endianness-detection.patch 640B

12345678910111213141516171819202122
  1. --- a/config_h.SH
  2. +++ b/config_h.SH
  3. @@ -52,6 +52,19 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#und
  4. #ifndef _config_h_
  5. #define _config_h_
  6. +#if defined(USE_CROSS_COMPILE) && !defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)
  7. +# include <endian.h>
  8. +# if defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && defined(__BIG_ENDIAN)
  9. +# if (__BYTE_ORDER == __LITTLE_ENDIAN)
  10. +# define __LITTLE_ENDIAN__
  11. +# elif (__BYTE_ORDER == __BIG_ENDIAN)
  12. +# define __BIG_ENDIAN__
  13. +# else
  14. +# error Unknown endianness
  15. +# endif
  16. +# endif
  17. +#endif
  18. +
  19. /* LOC_SED:
  20. * This symbol holds the complete pathname to the sed program.
  21. */