Fix compile time errors when building against uclibc Mesa misses a few checks when compiling on a uclibc system which cause it to fall back on glibc-ism. This patch addresses those issues. Signed-off-by: Anthony G. Basile diff -Naur Mesa-8.0.4.orig/src/gallium/auxiliary/util/u_debug_symbol.c Mesa-8.0.4/src/gallium/auxiliary/util/u_debug_symbol.c --- Mesa-8.0.4.orig/src/gallium/auxiliary/util/u_debug_symbol.c 2012-07-24 18:55:48.580000000 +0000 +++ Mesa-8.0.4/src/gallium/auxiliary/util/u_debug_symbol.c 2012-07-24 18:57:02.910000000 +0000 @@ -152,7 +152,9 @@ #endif #ifdef __GLIBC__ +#ifndef __UCLIBC__ #include +#endif /* This can only provide dynamic symbols, or binary offsets into a file. * diff -Naur Mesa-8.0.4.orig/src/glsl/strtod.c Mesa-8.0.4/src/glsl/strtod.c --- Mesa-8.0.4.orig/src/glsl/strtod.c 2012-07-24 18:55:48.580000000 +0000 +++ Mesa-8.0.4/src/glsl/strtod.c 2012-07-24 18:56:37.850000000 +0000 @@ -45,7 +45,7 @@ glsl_strtod(const char *s, char **end) { #if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && \ - !defined(__HAIKU__) + !defined(__HAIKU__) && !defined(__UCLIBC__) static locale_t loc = NULL; if (!loc) { loc = newlocale(LC_CTYPE_MASK, "C", NULL); diff -Naur Mesa-8.0.4.orig/src/mesa/main/imports.c Mesa-8.0.4/src/mesa/main/imports.c --- Mesa-8.0.4.orig/src/mesa/main/imports.c 2012-07-24 18:55:48.580000000 +0000 +++ Mesa-8.0.4/src/mesa/main/imports.c 2012-07-24 18:56:37.850000000 +0000 @@ -767,7 +767,7 @@ _mesa_strtof( const char *s, char **end ) { #if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && \ - !defined(ANDROID) && !defined(__HAIKU__) + !defined(ANDROID) && !defined(__HAIKU__) && !defined(__UCLIBC__) static locale_t loc = NULL; if (!loc) { loc = newlocale(LC_CTYPE_MASK, "C", NULL);