diff options
Diffstat (limited to 'mail/thunderbird10/patches/patch-mozilla_ipc_chromium_src_base_process__util.h')
-rw-r--r-- | mail/thunderbird10/patches/patch-mozilla_ipc_chromium_src_base_process__util.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/mail/thunderbird10/patches/patch-mozilla_ipc_chromium_src_base_process__util.h b/mail/thunderbird10/patches/patch-mozilla_ipc_chromium_src_base_process__util.h new file mode 100644 index 00000000000..4d264ca2c52 --- /dev/null +++ b/mail/thunderbird10/patches/patch-mozilla_ipc_chromium_src_base_process__util.h @@ -0,0 +1,45 @@ +$NetBSD: patch-mozilla_ipc_chromium_src_base_process__util.h,v 1.1.1.1 2012/03/15 09:45:29 ryoon Exp $ + +--- mozilla/ipc/chromium/src/base/process_util.h.orig 2012-02-16 10:25:01.000000000 +0000 ++++ mozilla/ipc/chromium/src/base/process_util.h +@@ -14,7 +14,6 @@ + #include <windows.h> + #include <tlhelp32.h> + #elif defined(OS_LINUX) +-#include <dirent.h> + #include <limits.h> + #include <sys/types.h> + #elif defined(OS_MACOSX) +@@ -280,6 +279,7 @@ class NamedProcessIterator { + const ProcessEntry* NextProcessEntry(); + + private: ++#if !defined(OS_BSD) + // Determines whether there's another process (regardless of executable) + // left in the list of all processes. Returns true and sets entry_ to + // that process's info if there is one, false otherwise. +@@ -292,18 +292,24 @@ class NamedProcessIterator { + void InitProcessEntry(ProcessEntry* entry); + + std::wstring executable_name_; ++#endif + + #if defined(OS_WIN) + HANDLE snapshot_; + bool started_iteration_; + #elif defined(OS_LINUX) + DIR *procfs_dir_; ++#elif defined(OS_BSD) ++ std::vector<ProcessEntry> content; ++ size_t nextEntry; + #elif defined(OS_MACOSX) + std::vector<kinfo_proc> kinfo_procs_; + size_t index_of_kinfo_proc_; + #endif ++#if !defined(OS_BSD) + ProcessEntry entry_; + const ProcessFilter* filter_; ++#endif + + DISALLOW_EVIL_CONSTRUCTORS(NamedProcessIterator); + }; |