projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9abe7f
)
mesa: Fix FreeBSD build with llvm enabled.
author
Vinson Lee
<vlee@vmware.com>
Thu, 12 Aug 2010 21:54:30 +0000
(14:54 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 12 Aug 2010 21:54:30 +0000
(14:54 -0700)
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
patch
|
blob
|
history
diff --git
a/src/mesa/main/imports.c
b/src/mesa/main/imports.c
index c399351096717ece4f6bde12e25e9332e2fe442a..46e5c932d0f5d2cc2db995232e47bb0a3c52fa95 100644
(file)
--- 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);