]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
a0ac3aefdd0f14ba3c31d536dc3406b4c25f6d2a
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 From 3d30df8d8ccb919733b5339b2a82474305b83998 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Tue, 6 Aug 2019 01:19:48 +0000
4 Subject: [PATCH] gallium: Expand libc check to be platform OS check
5
6 endianness on musl based systems can also be detected in same way as
7 glibc, therefore check for __linux__ define instead of __GLIBC__
8
9 Fixes build on musl/mips
10
11 | ../../../../git/src/gallium/include/pipe/p_config.h:171:2: error: #error Unknown Endianness
12 | #error Unknown Endianness
13 | ^~~~~
14
15 Upstream-Status: Pending
16 Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 ---
18 src/gallium/include/pipe/p_config.h | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
22 index d603681..71cdf49 100644
23 --- a/src/gallium/include/pipe/p_config.h
24 +++ b/src/gallium/include/pipe/p_config.h
25 @@ -130,7 +130,7 @@
26 * Endian detection.
27 */
28
29 -#ifdef __GLIBC__
30 +#ifdef __linux__
31 #include <endian.h>
32
33 #if __BYTE_ORDER == __LITTLE_ENDIAN
34 --
35 2.17.1
36