Mesa (master): mesa: Fix FreeBSD build with llvm enabled.
Vinson Lee
vlee at kemper.freedesktop.org
Thu Aug 12 21:55:43 UTC 2010
Module: Mesa
Branch: master
Commit: 56450d5f11c2f46cbb9cdba85a3e3d7561be4d51
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56450d5f11c2f46cbb9cdba85a3e3d7561be4d51
Author: Vinson Lee <vlee at vmware.com>
Date: Thu Aug 12 14:54:30 2010 -0700
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.
---
src/mesa/main/imports.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
index c399351..46e5c93 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);
More information about the mesa-commit
mailing list