diff options
Diffstat (limited to 'base/debug')
-rw-r--r-- | base/debug/debugger_posix.cc | 9 | ||||
-rw-r--r-- | base/debug/stack_trace_posix.cc | 1 |
2 files changed, 5 insertions, 5 deletions
diff --git a/base/debug/debugger_posix.cc b/base/debug/debugger_posix.cc index bf90a0f..a1551a3 100644 --- a/base/debug/debugger_posix.cc +++ b/base/debug/debugger_posix.cc @@ -12,9 +12,6 @@ #include <stdlib.h> #include <sys/param.h> #include <sys/stat.h> -#if !defined(OS_NACL) -#include <sys/sysctl.h> -#endif #include <sys/types.h> #include <unistd.h> @@ -29,6 +26,10 @@ #include <AvailabilityMacros.h> #endif +#if defined(OS_MACOSX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) +#include <sys/sysctl.h> +#endif + #include <iostream> #include "base/basictypes.h" @@ -136,7 +137,7 @@ bool BeingDebugged() { return false; } -#elif defined(OS_FREEBSD) +#else bool BeingDebugged() { // TODO(benl): can we determine this under FreeBSD? diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc index c405aa2..75dd10d 100644 --- a/base/debug/stack_trace_posix.cc +++ b/base/debug/stack_trace_posix.cc @@ -11,7 +11,6 @@ #include <stdlib.h> #include <sys/param.h> #include <sys/stat.h> -#include <sys/sysctl.h> #include <sys/types.h> #include <unistd.h> |