diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-13 04:23:22 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-13 04:23:22 +0000 |
commit | 817f0f142f483482337a44faaff5ab0bb18462bc (patch) | |
tree | 5b508b221a9f86fa576ebfa7dcc2b557f0660a68 /base/process_util.h | |
parent | 54be5b4bee355cc17d9f66dbd0f7343bfcc1655c (diff) | |
download | chromium_src-817f0f142f483482337a44faaff5ab0bb18462bc.zip chromium_src-817f0f142f483482337a44faaff5ab0bb18462bc.tar.gz chromium_src-817f0f142f483482337a44faaff5ab0bb18462bc.tar.bz2 |
OpenBSD and FreeBSD fixes for base.
OpenBSD and FreeBSD need -I/usr/local/include for <execinfo.h>.
Use !#/usr/bin/env bash because on !linux it's not located there.
Patch by Robert Nagy <robert@openbsd.org>
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/8228005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105257 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/process_util.h b/base/process_util.h index 4cd1da3..b4e4fc0 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -14,14 +14,16 @@ #if defined(OS_WIN) #include <windows.h> #include <tlhelp32.h> -#elif defined(OS_MACOSX) +#elif defined(OS_MACOSX) || defined(OS_OPENBSD) // kinfo_proc is defined in <sys/sysctl.h>, but this forward declaration // is sufficient for the vector<kinfo_proc> below. struct kinfo_proc; // malloc_zone_t is defined in <malloc/malloc.h>, but this forward declaration // is sufficient for GetPurgeableZone() below. typedef struct _malloc_zone_t malloc_zone_t; +#if !defined(OS_OPENBSD) #include <mach/mach.h> +#endif #elif defined(OS_POSIX) #include <dirent.h> #include <limits.h> @@ -526,7 +528,7 @@ class BASE_EXPORT ProcessIterator { #if defined(OS_WIN) HANDLE snapshot_; bool started_iteration_; -#elif defined(OS_MACOSX) +#elif defined(OS_MACOSX) || defined(OS_OPENBSD) std::vector<kinfo_proc> kinfo_procs_; size_t index_of_kinfo_proc_; #elif defined(OS_POSIX) |