Bug 823240 - include sys/proc.h on OpenBSD to access P_TRACED flag, needed since r1.127 of sys/sysctl.h. r=cjones
authorLandry Breuil <landry@openbsd.org>
Thu, 20 Dec 2012 13:46:39 +0100
changeset 116623 8b94cd856c5959d7464ee7ed1d8e75fb9bb152e0
parent 116622 259aa51773334998c074fa8676acbd50bab9d673
child 116624 7d7600c0d5d0dd9ac4c366f041f8b4b053c41a98
push idunknown
push userunknown
push dateunknown
reviewerscjones
bugs823240
milestone20.0a1
Bug 823240 - include sys/proc.h on OpenBSD to access P_TRACED flag, needed since r1.127 of sys/sysctl.h. r=cjones
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
@@ -15,16 +15,19 @@
 #include <sys/param.h>
 #include <sys/types.h>
 #include <unistd.h>
 #if MOZ_HAVE_EXECINFO_H
 #include <execinfo.h>
 #endif
 
 #if defined(OS_MACOSX) || defined(OS_BSD)
+#if defined(OS_OPENBSD)
+#include <sys/proc.h>
+#endif
 #include <sys/sysctl.h>
 #endif
 
 #if defined(OS_DRAGONFLY) || defined(OS_FREEBSD)
 #include <sys/user.h>
 #endif
 
 #include "base/basictypes.h"