void-packages/srcpkgs/libGL/patches/musl-endian.patch
Jürgen Buchmüller 45df84b706 libGL: fix musl
2017-12-26 09:23:35 +01:00

19 lines
389 B
Diff

--- 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