mirror of
https://git.freebsd.org/ports.git
synced 2025-07-04 19:09:16 -04:00
Approved by: rene (mentor) Security: https://vuxml.freebsd.org/freebsd/d357f6bb-0af4-4ac9-b096-eeec183ad829.html
21 lines
698 B
C++
21 lines
698 B
C++
--- base/debug/stack_trace.cc.orig 2023-03-09 06:31:50 UTC
|
|
+++ base/debug/stack_trace.cc
|
|
@@ -273,7 +273,9 @@ void StackTrace::Print() const {
|
|
}
|
|
|
|
void StackTrace::OutputToStream(std::ostream* os) const {
|
|
+#if !BUILDFLAG(IS_BSD)
|
|
OutputToStreamWithPrefix(os, nullptr);
|
|
+#endif
|
|
}
|
|
|
|
std::string StackTrace::ToString() const {
|
|
@@ -281,7 +283,7 @@ std::string StackTrace::ToString() const {
|
|
}
|
|
std::string StackTrace::ToStringWithPrefix(const char* prefix_string) const {
|
|
std::stringstream stream;
|
|
-#if !defined(__UCLIBC__) && !defined(_AIX)
|
|
+#if !defined(__UCLIBC__) && !defined(_AIX) && !BUILDFLAG(IS_BSD)
|
|
OutputToStreamWithPrefix(&stream, prefix_string);
|
|
#endif
|
|
return stream.str();
|