diff options
author | robert.nagy@gmail.com <robert.nagy@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-04 14:19:41 +0000 |
---|---|---|
committer | robert.nagy@gmail.com <robert.nagy@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-04 14:19:41 +0000 |
commit | af8243689d57c31fe13fccce90197a7fe3e868b8 (patch) | |
tree | 3465d17cf4285cba91fae4d1b107d170321d3580 /base/process_util.h | |
parent | ddd3eeb47ce0ec6416746b4338d2ffdfbb409442 (diff) | |
download | chromium_src-af8243689d57c31fe13fccce90197a7fe3e868b8.zip chromium_src-af8243689d57c31fe13fccce90197a7fe3e868b8.tar.gz chromium_src-af8243689d57c31fe13fccce90197a7fe3e868b8.tar.bz2 |
use os_bsd and OS_BSD and add some OS_FREEBSD conditions
this change is the first part of the FreeBSD support
BUG=
TEST=
Review URL: http://codereview.chromium.org/8773051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r-- | base/process_util.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/process_util.h b/base/process_util.h index 3c9dfbe..9bcd6d4 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -14,14 +14,14 @@ #if defined(OS_WIN) #include <windows.h> #include <tlhelp32.h> -#elif defined(OS_MACOSX) || defined(OS_OPENBSD) +#elif defined(OS_MACOSX) || defined(OS_BSD) // 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) +#if !defined(OS_BSD) #include <mach/mach.h> #endif #elif defined(OS_POSIX) @@ -167,7 +167,7 @@ BASE_EXPORT void CloseProcessHandle(ProcessHandle process); // Win XP SP1 as well. BASE_EXPORT ProcessId GetProcId(ProcessHandle process); -#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_OPENBSD) +#if defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD) // Returns the path to the executable of the given process. BASE_EXPORT FilePath GetProcessExecutablePath(ProcessHandle process); #endif @@ -568,7 +568,7 @@ class BASE_EXPORT ProcessIterator { #if defined(OS_WIN) HANDLE snapshot_; bool started_iteration_; -#elif defined(OS_MACOSX) || defined(OS_OPENBSD) +#elif defined(OS_MACOSX) || defined(OS_BSD) std::vector<kinfo_proc> kinfo_procs_; size_t index_of_kinfo_proc_; #elif defined(OS_POSIX) |