summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa-dri/uclibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa-dri/uclibc.patch')
-rw-r--r--meta/recipes-graphics/mesa/mesa-dri/uclibc.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa-dri/uclibc.patch b/meta/recipes-graphics/mesa/mesa-dri/uclibc.patch
new file mode 100644
index 0000000000..bb5af44a36
--- /dev/null
+++ b/meta/recipes-graphics/mesa/mesa-dri/uclibc.patch
@@ -0,0 +1,40 @@
1Index: Mesa-7.10.2/src/mesa/main/imports.c
2===================================================================
3--- Mesa-7.10.2.orig/src/mesa/main/imports.c 2011-03-01 12:57:29.000000000 -0800
4+++ Mesa-7.10.2/src/mesa/main/imports.c 2011-07-20 19:08:49.441785510 -0700
5@@ -757,7 +757,7 @@
6 float
7 _mesa_strtof( const char *s, char **end )
8 {
9-#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__)
10+#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && defined (HAVE_NEWLOCALE)
11 static locale_t loc = NULL;
12 if (!loc) {
13 loc = newlocale(LC_CTYPE_MASK, "C", NULL);
14Index: Mesa-7.10.2/src/glsl/strtod.c
15===================================================================
16--- Mesa-7.10.2.orig/src/glsl/strtod.c 2011-01-03 16:45:51.000000000 -0800
17+++ Mesa-7.10.2/src/glsl/strtod.c 2011-07-20 19:10:21.441785488 -0700
18@@ -44,7 +44,7 @@
19 double
20 glsl_strtod(const char *s, char **end)
21 {
22-#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__)
23+#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && defined (HAVE_NEWLOCALE)
24 static locale_t loc = NULL;
25 if (!loc) {
26 loc = newlocale(LC_CTYPE_MASK, "C", NULL);
27Index: Mesa-7.10.2/configure.ac
28===================================================================
29--- Mesa-7.10.2.orig/configure.ac 2011-07-20 19:09:02.000000000 -0700
30+++ Mesa-7.10.2/configure.ac 2011-07-20 19:09:57.121785492 -0700
31@@ -450,6 +450,9 @@
32 dnl See if posix_memalign is available
33 AC_CHECK_FUNC([posix_memalign], [DEFINES="$DEFINES -DHAVE_POSIX_MEMALIGN"])
34
35+dnl See if newlocale is available
36+AC_CHECK_FUNCS_ONCE(newlocale)
37+
38 dnl SELinux awareness.
39 AC_ARG_ENABLE([selinux],
40 [AS_HELP_STRING([--enable-selinux],