summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-07-24 12:59:54 -0700
committerMatt Turner <mattst88@gmail.com>2012-07-24 13:00:47 -0700
commitf35e380dd240b418e17a179af73bbab74ceea784 (patch)
tree73d09f686239d1b079d363d901370761db932f6d /src/gallium
parent1ffac44e83a6fa6f486c6493e1d4eda259938ebb (diff)
downloadexternal_mesa3d-f35e380dd240b418e17a179af73bbab74ceea784.zip
external_mesa3d-f35e380dd240b418e17a179af73bbab74ceea784.tar.gz
external_mesa3d-f35e380dd240b418e17a179af73bbab74ceea784.tar.bz2
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>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/util/u_debug_symbol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_debug_symbol.c b/src/gallium/auxiliary/util/u_debug_symbol.c
index bae9be8..3d2f8eb 100644
--- a/src/gallium/auxiliary/util/u_debug_symbol.c
+++ b/src/gallium/auxiliary/util/u_debug_symbol.c
@@ -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.
*