From 3f73db18f4b9d6dc4737e6f16663af3acf3e4cf9 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Mon, 7 Oct 2024 14:46:36 +0800 Subject: [PATCH] musl: base: Fix stack trace printing --- src/base/debug/stack_trace_posix.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/base/debug/stack_trace_posix.cc b/src/base/debug/stack_trace_posix.cc index d4b6111077..81d106d4f3 100644 --- a/src/base/debug/stack_trace_posix.cc +++ b/src/base/debug/stack_trace_posix.cc @@ -1082,6 +1082,10 @@ void StackTrace::OutputToStreamWithPrefixImpl( StreamBacktraceOutputHandler handler(os); ProcessBacktrace(addresses(), prefix_string, &handler); } +#else +void StackTrace::OutputToStreamWithPrefixImpl( + std::ostream*, cstring_view) const { +} #endif namespace internal {