diff options
author | ryoon <ryoon@pkgsrc.org> | 2012-08-29 03:01:19 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2012-08-29 03:01:19 +0000 |
commit | 9961b87758f0488a3857a9b584e39224e1d2bdd5 (patch) | |
tree | b81526f1407a5baa978a9a04654c7dcbc9173dfc /devel/xulrunner | |
parent | 644cbfd4ee18160bcd0764b6f2d203b6bb3063fc (diff) | |
download | pkgsrc-9961b87758f0488a3857a9b584e39224e1d2bdd5.tar.gz |
Forget to commit the patch.
Diffstat (limited to 'devel/xulrunner')
-rw-r--r-- | devel/xulrunner/patches/patch-ipc_chromium_src_base_debug__util__posix.cc | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/devel/xulrunner/patches/patch-ipc_chromium_src_base_debug__util__posix.cc b/devel/xulrunner/patches/patch-ipc_chromium_src_base_debug__util__posix.cc new file mode 100644 index 00000000000..7a06cc4ce8d --- /dev/null +++ b/devel/xulrunner/patches/patch-ipc_chromium_src_base_debug__util__posix.cc @@ -0,0 +1,57 @@ +$NetBSD: patch-ipc_chromium_src_base_debug__util__posix.cc,v 1.1 2012/08/29 03:01:19 ryoon Exp $ + +# Reported upstream: https://bugzilla.mozilla.org/show_bug.cgi?id=753046 + +--- ipc/chromium/src/base/debug_util_posix.cc.orig 2012-08-24 22:55:37.000000000 +0000 ++++ ipc/chromium/src/base/debug_util_posix.cc +@@ -5,7 +5,7 @@ + #include "build/build_config.h" + #include "base/debug_util.h" + +-#define MOZ_HAVE_EXECINFO_H (!defined(ANDROID) && !defined(__OpenBSD__)) ++#define MOZ_HAVE_EXECINFO_H (defined(OS_LINUX) && !defined(ANDROID)) + + #include <errno.h> + #include <fcntl.h> +@@ -17,9 +17,16 @@ + #include <unistd.h> + #if MOZ_HAVE_EXECINFO_H + #include <execinfo.h> ++#endif ++ ++#if defined(OS_MACOSX) || defined(OS_BSD) + #include <sys/sysctl.h> + #endif + ++#if defined(OS_DRAGONFLY) || defined(OS_FREEBSD) ++#include <sys/user.h> ++#endif ++ + #include "base/basictypes.h" + #include "base/eintr_wrapper.h" + #include "base/logging.h" +@@ -32,7 +39,7 @@ bool DebugUtil::SpawnDebuggerOnProcess(u + return false; + } + +-#if defined(OS_MACOSX) ++#if defined(OS_MACOSX) || defined(OS_BSD) + + // Based on Apple's recommended method as described in + // http://developer.apple.com/qa/qa2004/qa1361.html +@@ -71,7 +78,15 @@ bool DebugUtil::BeingDebugged() { + + // This process is being debugged if the P_TRACED flag is set. + is_set = true; ++#if defined(OS_DRAGONFLY) ++ being_debugged = (info.kp_flags & P_TRACED) != 0; ++#elif defined(OS_FREEBSD) ++ being_debugged = (info.ki_flag & P_TRACED) != 0; ++#elif defined(OS_OPENBSD) ++ being_debugged = (info.p_flag & P_TRACED) != 0; ++#else + being_debugged = (info.kp_proc.p_flag & P_TRACED) != 0; ++#endif + return being_debugged; + } + |