summaryrefslogtreecommitdiffstats
path: root/src/glsl/strtod.c
diff options
context:
space:
mode:
authorAnthony G. Basile <[email protected]>2012-07-24 12:59:54 -0700
committerMatt Turner <[email protected]>2012-07-24 13:00:47 -0700
commitf35e380dd240b418e17a179af73bbab74ceea784 (patch)
tree73d09f686239d1b079d363d901370761db932f6d /src/glsl/strtod.c
parent1ffac44e83a6fa6f486c6493e1d4eda259938ebb (diff)
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Anthony G. Basile <[email protected]>
Diffstat (limited to 'src/glsl/strtod.c')
-rw-r--r--src/glsl/strtod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/strtod.c b/src/glsl/strtod.c
index a876e138b70..47c1f0ed69c 100644
--- a/src/glsl/strtod.c
+++ b/src/glsl/strtod.c
@@ -45,7 +45,7 @@ double
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);