diff options
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.patch | 25 |
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 | ||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
4 | Upstream-Status: Pending | 4 | Upstream-Status: Pending |
5 | Index: mesa-11.1.1/src/gallium/include/pipe/p_config.h | 5 | |
6 | =================================================================== | 6 | Signed-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 | */ | 11 | diff --git a/src/util/u_endian.h b/src/util/u_endian.h |
12 | index 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 | -- | ||
25 | 2.1.4 | ||
26 | |||