summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.c
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-07-24 12:59:54 -0700
committerMatt Turner <mattst88@gmail.com>2012-07-24 13:00:47 -0700
commitf35e380dd240b418e17a179af73bbab74ceea784 (patch)
tree73d09f686239d1b079d363d901370761db932f6d /src/mesa/main/imports.c
parent1ffac44e83a6fa6f486c6493e1d4eda259938ebb (diff)
downloadexternal_mesa3d-f35e380dd240b418e17a179af73bbab74ceea784.zip
external_mesa3d-f35e380dd240b418e17a179af73bbab74ceea784.tar.gz
external_mesa3d-f35e380dd240b418e17a179af73bbab74ceea784.tar.bz2
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. Acked-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/mesa/main/imports.c')
-rw-r--r--src/mesa/main/imports.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index 444de87..0d6b56a 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -542,7 +542,7 @@ float
_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);