summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-08-12 14:54:30 -0700
committerVinson Lee <[email protected]>2010-08-12 14:54:30 -0700
commit56450d5f11c2f46cbb9cdba85a3e3d7561be4d51 (patch)
tree8634ba218f81f822ae4377f31fa40c092cc4852d
parentb9abe7f62c09c0395214b9447032323b3846b2cf (diff)
mesa: Fix FreeBSD build with llvm enabled.
On FreeBSD LC_CTYPE_MASK is not available but 'llvm-config --cppflags' adds the compiler flag -D_GNU_SOURCE to the build.
-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 c3993510967..46e5c932d0f 100644
--- a/src/mesa/main/imports.c
+++ b/src/mesa/main/imports.c
@@ -756,7 +756,7 @@ _mesa_strdup( const char *s )
float
_mesa_strtof( const char *s, char **end )
{
-#if defined(_GNU_SOURCE) && !defined(__CYGWIN__)
+#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__)
static locale_t loc = NULL;
if (!loc) {
loc = newlocale(LC_CTYPE_MASK, "C", NULL);