From 78e8c4b0e7da987de7b0482e4e88b56026aa9193 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 30 Nov 2019 22:37:57 +0800 Subject: [PATCH] base/debug: Fix uClibc macro condition --- src/base/debug/stack_trace.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/base/debug/stack_trace.h b/src/base/debug/stack_trace.h index c3dc1a1029..cd41fed48c 100644 --- a/src/base/debug/stack_trace.h +++ b/src/base/debug/stack_trace.h @@ -126,6 +126,10 @@ class BASE_EXPORT StackTrace { // prefix string prepended to each line. void OutputToStreamWithPrefix(std::ostream* os, cstring_view prefix_string) const; +#else + void OutputToStream(std::ostream* os) const; + void OutputToStreamWithPrefix(std::ostream* os, + cstring_view prefix_string) const; #endif // Resolves backtrace to symbols and returns as string. @@ -149,6 +153,9 @@ class BASE_EXPORT StackTrace { #if !defined(__UCLIBC__) && !defined(_AIX) void OutputToStreamWithPrefixImpl(std::ostream* os, cstring_view prefix_string) const; +#else + void OutputToStreamWithPrefixImpl(std::ostream* os, + cstring_view prefix_string) const {} #endif // Returns true if generation of symbolized stack traces is to be suppressed.