aports/main/mesa/uclibc-debug.patch
2012-10-17 08:59:36 +00:00

24 lines
523 B
Diff

--- ./src/gallium/auxiliary/util/u_debug_symbol.c.orig
+++ ./src/gallium/auxiliary/util/u_debug_symbol.c
@@ -151,10 +151,8 @@
}
#endif
-#ifdef __GLIBC__
-#ifndef __UCLIBC__
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
#include <execinfo.h>
-#endif
/* This can only provide dynamic symbols, or binary offsets into a file.
*
@@ -179,7 +177,7 @@
return;
#endif
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
debug_symbol_name_glibc(addr, buf, size);
if(buf[0])
return;