Mesa (master): gallium: fix build on uclibc system

Brian Paul brianp at kemper.freedesktop.org
Wed May 29 14:40:25 UTC 2013


Module: Mesa
Branch: master
Commit: 22f1add9687ac272bc731b6612bfee50bdbf2f7e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=22f1add9687ac272bc731b6612bfee50bdbf2f7e

Author: Anthony G. Basile <blueness at gentoo.org>
Date:   Tue May 28 22:58:10 2013 +0000

gallium: fix build on uclibc system

execinfo.h and debug_symbol_name_glibc() are pure GNU-isms and do not
build on uclibc systems.  A previous patch addressed this issue, but
there was an error.  This patch corrects that error.  See

  https://bugs.freedesktop.org/show_bug.cgi?id=51782
  https://bugs.gentoo.org/show_bug.cgi?id=469768

Signed-off-by: Anthony G. Basile <blueness at gentoo.org>
Signed-off-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/auxiliary/util/u_debug_symbol.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_debug_symbol.c b/src/gallium/auxiliary/util/u_debug_symbol.c
index 3d2f8eb..0ef111c 100644
--- a/src/gallium/auxiliary/util/u_debug_symbol.c
+++ b/src/gallium/auxiliary/util/u_debug_symbol.c
@@ -151,10 +151,8 @@ debug_symbol_name_dbghelp(const void *addr, char* buf, unsigned size)
 }
 #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 @@ debug_symbol_name(const void *addr, char* buf, unsigned size)
       return;
 #endif
 
-#ifdef __GLIBC__
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
    debug_symbol_name_glibc(addr, buf, size);
    if(buf[0])
       return;




More information about the mesa-commit mailing list