libGL: fix musl
This commit is contained in:
parent
4b1c9d7adb
commit
45df84b706
1 changed files with 19 additions and 0 deletions
19
srcpkgs/libGL/patches/musl-endian.patch
Normal file
19
srcpkgs/libGL/patches/musl-endian.patch
Normal 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
|
Loading…
Reference in a new issue