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>
This commit is contained in:
committed by
Matt Turner
parent
1ffac44e83
commit
f35e380dd2
@@ -152,7 +152,9 @@ debug_symbol_name_dbghelp(const void *addr, char* buf, unsigned size)
|
||||
#endif
|
||||
|
||||
#ifdef __GLIBC__
|
||||
#ifndef __UCLIBC__
|
||||
#include <execinfo.h>
|
||||
#endif
|
||||
|
||||
/* This can only provide dynamic symbols, or binary offsets into a file.
|
||||
*
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user