re-add needed patch for i386

This commit is contained in:
robert 2012-10-12 17:34:17 +00:00
parent 26018c5afe
commit 13a086e13e
2 changed files with 19 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.108 2012/10/12 16:46:09 robert Exp $
# $OpenBSD: Makefile,v 1.109 2012/10/12 17:34:17 robert Exp $
ONLY_FOR_ARCHS= i386 amd64
@ -6,6 +6,7 @@ COMMENT= Chromium browser
V= 22.0.1229.94
DISTNAME= chromium-${V}
REVISION= 0
CATEGORIES= www

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-base_debug_stack_trace_posix_cc,v 1.7 2012/10/12 17:34:17 robert Exp $
--- base/debug/stack_trace_posix.cc.orig Fri Oct 12 21:20:33 2012
+++ base/debug/stack_trace_posix.cc Fri Oct 12 21:21:03 2012
@@ -148,9 +148,13 @@ bool GetBacktraceStrings(void *const *trace, int size,
} // namespace
StackTrace::StackTrace() {
+#if defined(OS_BSD)
+ count_ = 0;
+#else
// Though the backtrace API man page does not list any possible negative
// return values, we take no chance.
count_ = std::max(backtrace(trace_, arraysize(trace_)), 0);
+#endif
}
void StackTrace::PrintBacktrace() const {