| Index: src/platform-linux.cc
|
| diff --git a/src/platform-linux.cc b/src/platform-linux.cc
|
| index 0359b2d79e98d59f8ea8f1f5d7970607b581bc44..195e41310fcea304d008cf73ac5be41c94c29b73 100644
|
| --- a/src/platform-linux.cc
|
| +++ b/src/platform-linux.cc
|
| @@ -38,7 +38,7 @@
|
| #include <sys/types.h>
|
| #include <stdlib.h>
|
|
|
| -#if defined(__GLIBC__)
|
| +#if defined(__GLIBC__) && !defined(__UCLIBC__)
|
| #include <execinfo.h>
|
| #include <cxxabi.h>
|
| #endif
|
| @@ -51,9 +51,6 @@
|
| #include <sys/stat.h> // open
|
| #include <fcntl.h> // open
|
| #include <unistd.h> // sysconf
|
| -#if defined(__GLIBC__) && !defined(__UCLIBC__)
|
| -#include <execinfo.h> // backtrace, backtrace_symbols
|
| -#endif // defined(__GLIBC__) && !defined(__UCLIBC__)
|
| #include <strings.h> // index
|
| #include <errno.h>
|
| #include <stdarg.h>
|
| @@ -433,7 +430,7 @@ void OS::DebugBreak() {
|
|
|
|
|
| void OS::DumpBacktrace() {
|
| -#if defined(__GLIBC__)
|
| +#if defined(__GLIBC__) && !defined(__UCLIBC__)
|
| void* trace[100];
|
| int size = backtrace(trace, ARRAY_SIZE(trace));
|
| char** symbols = backtrace_symbols(trace, size);
|
|
|