Index: base/debug/stack_trace_posix.cc |
diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc |
index 176d463353b4b09c8d59a746871fc5da43630fc7..76cb5249854a335e0a727e3c47830d88102be541 100644 |
--- a/base/debug/stack_trace_posix.cc |
+++ b/base/debug/stack_trace_posix.cc |
@@ -759,12 +759,14 @@ void StackTrace::Print() const { |
#endif |
} |
-#if !defined(__UCLIBC__) && !defined(FNL_MUSL) |
void StackTrace::OutputToStream(std::ostream* os) const { |
+#if defined(__UCLIBC__) || defined(FNL_MUSL) |
+ (*os) << "(stack trace not supported)\n"; |
+#else |
StreamBacktraceOutputHandler handler(os); |
ProcessBacktrace(trace_, count_, &handler); |
-} |
#endif |
+} |
namespace internal { |