diff options
author | Jory Pratt <[email protected]> | 2019-05-07 21:47:40 -0500 |
---|---|---|
committer | Matt Turner <[email protected]> | 2019-06-19 12:16:18 -0700 |
commit | 10e8d466011076a0453368cb976d9f6b06af0e94 (patch) | |
tree | 25078294e5ff38bc2f4210b1cb2f9a0bbe36151f /src/gallium | |
parent | fd7b7f14d857f96cf3b2e9d8405dbbfa30dc261a (diff) |
meson: Search for execinfo.h
Rather than checking __GLIBC__/__UCLIBC__ macros as a proxy for
execinfo.h presence, just check directly. This allows the build to work
on musl.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/util/u_debug_symbol.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/util/u_debug_symbol.c b/src/gallium/auxiliary/util/u_debug_symbol.c index 22e6c8ce771..d8380b76bf6 100644 --- a/src/gallium/auxiliary/util/u_debug_symbol.c +++ b/src/gallium/auxiliary/util/u_debug_symbol.c @@ -219,7 +219,7 @@ debug_symbol_name_dbghelp(const void *addr, char* buf, unsigned size) #endif /* PIPE_OS_WINDOWS */ -#if defined(__GLIBC__) && !defined(__UCLIBC__) +#if defined(HAVE_EXECINFO_H) #include <execinfo.h> @@ -240,7 +240,7 @@ debug_symbol_name_glibc(const void *addr, char* buf, unsigned size) return TRUE; } -#endif /* defined(__GLIBC__) && !defined(__UCLIBC__) */ +#endif /* defined(HAVE_EXECINFO_H) */ void @@ -252,11 +252,11 @@ debug_symbol_name(const void *addr, char* buf, unsigned size) } #endif -#if defined(__GLIBC__) && !defined(__UCLIBC__) +#if defined(HAVE_EXECINFO_H) if (debug_symbol_name_glibc(addr, buf, size)) { return; } -#endif +#endif /* defined(HAVE_EXECINFO_H) */ util_snprintf(buf, size, "%p", addr); buf[size - 1] = 0; |