Bug 927810: Fix ipc/chromium after p_psflags changes in struct kinfo_proc on OpenBSD. r=glandium
authorLandry Breuil <landry@openbsd.org>
Fri, 18 Oct 2013 11:13:45 +0200
changeset 166102 4c0ebfb35fc31fe85ebbe7224241521242cfb75a
parent 166101 e337dc39645fab0b0868f971db77fa244e3e9acc
child 166103 d50df2233e95f4d45b35eddbfbe84bcdda6a11e2
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs927810
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 927810: Fix ipc/chromium after p_psflags changes in struct kinfo_proc on OpenBSD. r=glandium
ipc/chromium/src/base/debug_util_posix.cc
--- a/ipc/chromium/src/base/debug_util_posix.cc
+++ b/ipc/chromium/src/base/debug_util_posix.cc
@@ -45,16 +45,19 @@
 #endif
 
 #if defined(OS_MACOSX)
 #define KP_FLAGS kp_proc.p_flag
 #elif defined(OS_DRAGONFLY)
 #define KP_FLAGS kp_flags
 #elif defined(OS_FREEBSD)
 #define KP_FLAGS ki_flag
+#elif defined(OS_OPENBSD) && !defined(_P_TRACED)
+#define KP_FLAGS p_psflags
+#define P_TRACED PS_TRACED
 #else
 #define KP_FLAGS p_flag
 #endif
 
 // static
 bool DebugUtil::SpawnDebuggerOnProcess(unsigned /* process_id */) {
   NOTIMPLEMENTED();
   return false;