20 lines
393 B
Diff
20 lines
393 B
Diff
--- a/src/util/u_endian.h 2017-12-21 18:31:22.000000000 +0100
|
|
+++ b/src/util/u_endian.h 2017-12-26 09:22:52.597199480 +0100
|
|
@@ -68,6 +68,16 @@
|
|
|
|
#define PIPE_ARCH_LITTLE_ENDIAN
|
|
|
|
+#else
|
|
+/* Musl libc */
|
|
+#include <endian.h>
|
|
+
|
|
+#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
+# define PIPE_ARCH_LITTLE_ENDIAN
|
|
+#elif __BYTE_ORDER == __BIG_ENDIAN
|
|
+# define PIPE_ARCH_BIG_ENDIAN
|
|
+#endif
|
|
+
|
|
#endif
|
|
|
|
#endif
|