mirror of
git://git.yoctoproject.org/poky
synced 2026-08-16 07:55:35 +00:00
It assumes __GLIBC__ where it could actually check for linux and include non-glibc C library implementations like musl which provide __BYTE_ORDER macros as well when computing system endianness (From OE-Core rev: b759afa08e339126c4e8b7e2aa87ed0c9f4b5d0d) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
18 lines
507 B
Diff
18 lines
507 B
Diff
endianness check is OS wide and not specific to libc
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
Upstream-Status: Pending
|
|
Index: mesa-11.1.1/src/gallium/include/pipe/p_config.h
|
|
===================================================================
|
|
--- mesa-11.1.1.orig/src/gallium/include/pipe/p_config.h
|
|
+++ mesa-11.1.1/src/gallium/include/pipe/p_config.h
|
|
@@ -130,7 +130,7 @@
|
|
* Endian detection.
|
|
*/
|
|
|
|
-#ifdef __GLIBC__
|
|
+#if defined(__linux__)
|
|
#include <endian.h>
|
|
|
|
#if __BYTE_ORDER == __LITTLE_ENDIAN
|