void-packages/srcpkgs/mesa/patches/musl-endian.patch
Juan RP 82232c2d17 mesa: renamed from libGL; switch to glvnd by default.
Based on work by Stefano Ragni on #16497

Tested on x86_64-musl with and without elogind, as well
as with or without root rights on intel.
2019-12-08 11:56:08 +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