musl-endian.patch 393 B

1234567891011121314151617181920
  1. --- a/src/util/u_endian.h 2017-12-21 18:31:22.000000000 +0100
  2. +++ b/src/util/u_endian.h 2017-12-26 09:22:52.597199480 +0100
  3. @@ -68,6 +68,16 @@
  4. #define PIPE_ARCH_LITTLE_ENDIAN
  5. +#else
  6. +/* Musl libc */
  7. +#include <endian.h>
  8. +
  9. +#if __BYTE_ORDER == __LITTLE_ENDIAN
  10. +# define PIPE_ARCH_LITTLE_ENDIAN
  11. +#elif __BYTE_ORDER == __BIG_ENDIAN
  12. +# define PIPE_ARCH_BIG_ENDIAN
  13. +#endif
  14. +
  15. #endif
  16. #endif