0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-03 15:25:17 +00:00
Files
termux-packages/x11-packages/chromium-host-tools/cr-patches/1020-chromium-debug-build-stack_trace.patch
2025-04-22 18:31:06 +08:00

19 lines
452 B
Diff

--- a/base/debug/stack_trace_posix.cc
+++ b/base/debug/stack_trace_posix.cc
@@ -1068,12 +1068,14 @@
#endif
}
-#if defined(HAVE_BACKTRACE)
+#if !defined(__UCLIBC__) && !defined(_AIX)
void StackTrace::OutputToStreamWithPrefixImpl(
std::ostream* os,
cstring_view prefix_string) const {
+#if defined(HAVE_BACKTRACE)
StreamBacktraceOutputHandler handler(os);
ProcessBacktrace(addresses(), prefix_string, &handler);
+#endif
}
#endif