libGL: fix musl

This commit is contained in:
Jürgen Buchmüller 2017-12-26 09:23:35 +01:00
parent 4b1c9d7adb
commit 45df84b706

View file

@ -0,0 +1,19 @@
--- src/util/u_endian.h 2017-12-21 18:31:22.000000000 +0100
+++ 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