diff options
Diffstat (limited to 'main/xulrunner/ipc-chromium-execinfo.patch')
-rw-r--r-- | main/xulrunner/ipc-chromium-execinfo.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/main/xulrunner/ipc-chromium-execinfo.patch b/main/xulrunner/ipc-chromium-execinfo.patch new file mode 100644 index 0000000000..48fc1c6a33 --- /dev/null +++ b/main/xulrunner/ipc-chromium-execinfo.patch @@ -0,0 +1,33 @@ +--- mozilla-1.9.2.orig/ipc/chromium/src/base/debug_util_posix.cc ++++ mozilla-1.9.2/ipc/chromium/src/base/debug_util_posix.cc +@@ -6,7 +6,6 @@ + #include "base/debug_util.h" + + #include <errno.h> +-#include <execinfo.h> + #include <fcntl.h> + #include <stdio.h> + #include <sys/stat.h> +@@ -114,6 +113,7 @@ + } + + StackTrace::StackTrace() { ++#if 0 + const int kMaxCallers = 256; + + void* callers[kMaxCallers]; +@@ -128,11 +128,14 @@ + } else { + trace_.resize(0); + } ++#endif + } + + void StackTrace::PrintBacktrace() { ++#if 0 + fflush(stderr); + backtrace_symbols_fd(&trace_[0], trace_.size(), STDERR_FILENO); ++#endif + } + + void StackTrace::OutputToStream(std::ostream* os) { |