summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch')
-rw-r--r--meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch25
1 files changed, 17 insertions, 8 deletions
diff --git a/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch b/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch
index e4461ef177..0280ee8599 100644
--- a/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch
+++ b/meta/recipes-graphics/mesa/files/replace_glibc_check_with_linux.patch
@@ -2,16 +2,25 @@ endianness check is OS wide and not specific to libc
2 2
3Signed-off-by: Khem Raj <raj.khem@gmail.com> 3Signed-off-by: Khem Raj <raj.khem@gmail.com>
4Upstream-Status: Pending 4Upstream-Status: Pending
5Index: mesa-11.1.1/src/gallium/include/pipe/p_config.h 5
6=================================================================== 6Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
7--- mesa-11.1.1.orig/src/gallium/include/pipe/p_config.h 7---
8+++ mesa-11.1.1/src/gallium/include/pipe/p_config.h 8 src/util/u_endian.h | 2 +-
9@@ -130,7 +130,7 @@ 9 1 file changed, 1 insertion(+), 1 deletion(-)
10 * Endian detection. 10
11 */ 11diff --git a/src/util/u_endian.h b/src/util/u_endian.h
12index b9d563d..2d5eab9 100644
13--- a/src/util/u_endian.h
14+++ b/src/util/u_endian.h
15@@ -27,7 +27,7 @@
16 #ifndef U_ENDIAN_H
17 #define U_ENDIAN_H
12 18
13-#ifdef __GLIBC__ 19-#if defined(__GLIBC__) || defined(ANDROID)
14+#if defined(__linux__) 20+#if defined(__linux__)
15 #include <endian.h> 21 #include <endian.h>
16 22
17 #if __BYTE_ORDER == __LITTLE_ENDIAN 23 #if __BYTE_ORDER == __LITTLE_ENDIAN
24--
252.1.4
26