aboutsummaryrefslogtreecommitdiffstats
path: root/main/mesa/uclibc-debug.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/mesa/uclibc-debug.patch')
-rw-r--r--main/mesa/uclibc-debug.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/main/mesa/uclibc-debug.patch b/main/mesa/uclibc-debug.patch
new file mode 100644
index 0000000000..e503d15a60
--- /dev/null
+++ b/main/mesa/uclibc-debug.patch
@@ -0,0 +1,23 @@
+--- ./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;