diff options
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa/0001-Compile-with-uclibc.patch')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa/0001-Compile-with-uclibc.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa/0001-Compile-with-uclibc.patch b/meta/recipes-graphics/mesa/mesa/0001-Compile-with-uclibc.patch new file mode 100644 index 0000000000..d39270a48b --- /dev/null +++ b/meta/recipes-graphics/mesa/mesa/0001-Compile-with-uclibc.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | Compile with uclibc | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | --- | ||
5 | configure.ac | 3 +++ | ||
6 | src/glsl/strtod.c | 2 +- | ||
7 | src/mesa/main/imports.c | 2 +- | ||
8 | 3 files changed, 5 insertions(+), 2 deletions(-) | ||
9 | |||
10 | diff --git a/configure.ac b/configure.ac | ||
11 | index fbaa376..454dad2 100644 | ||
12 | --- a/configure.ac | ||
13 | +++ b/configure.ac | ||
14 | @@ -543,6 +543,9 @@ AC_SUBST([DLOPEN_LIBS]) | ||
15 | dnl See if posix_memalign is available | ||
16 | AC_CHECK_FUNC([posix_memalign], [DEFINES="$DEFINES -DHAVE_POSIX_MEMALIGN"]) | ||
17 | |||
18 | +dnl See if newlocale is available | ||
19 | +AC_CHECK_FUNCS_ONCE(newlocale) | ||
20 | + | ||
21 | dnl SELinux awareness. | ||
22 | AC_ARG_ENABLE([selinux], | ||
23 | [AS_HELP_STRING([--enable-selinux], | ||
24 | diff --git a/src/glsl/strtod.c b/src/glsl/strtod.c | ||
25 | index a876e13..9fce7e9 100644 | ||
26 | --- a/src/glsl/strtod.c | ||
27 | +++ b/src/glsl/strtod.c | ||
28 | @@ -45,7 +45,7 @@ double | ||
29 | glsl_strtod(const char *s, char **end) | ||
30 | { | ||
31 | #if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && \ | ||
32 | - !defined(__HAIKU__) | ||
33 | + !defined(__HAIKU__) && defined (HAVE_NEWLOCALE) | ||
34 | static locale_t loc = NULL; | ||
35 | if (!loc) { | ||
36 | loc = newlocale(LC_CTYPE_MASK, "C", NULL); | ||
37 | diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c | ||
38 | index d3727ef..363bf32 100644 | ||
39 | --- a/src/mesa/main/imports.c | ||
40 | +++ b/src/mesa/main/imports.c | ||
41 | @@ -767,7 +767,7 @@ float | ||
42 | _mesa_strtof( const char *s, char **end ) | ||
43 | { | ||
44 | #if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && \ | ||
45 | - !defined(ANDROID) && !defined(__HAIKU__) | ||
46 | + !defined(ANDROID) && !defined(__HAIKU__) && defined (HAVE_NEWLOCALE) | ||
47 | static locale_t loc = NULL; | ||
48 | if (!loc) { | ||
49 | loc = newlocale(LC_CTYPE_MASK, "C", NULL); | ||
50 | -- | ||
51 | 1.7.10.4 | ||
52 | |||