f9e1049018
Mozilla Firefox is a free, open-source and cross-platform web browser for Windows, Linux, MacOS X and many other operating systems. It is fast and easy to use, and offers many advantages over other web browsers, such as tabbed browsing and the ability to block pop-up windows. Firefox also offers excellent bookmark and history management, and it can be extended by developers using industry standards such as XML, CSS, JavaScript, C++, etc. Many extensions are available.
32 lines
1 KiB
C++
32 lines
1 KiB
C++
$NetBSD: patch-ipc_chromium_src_base_process__util.h,v 1.1 2014/11/03 12:18:32 ryoon Exp $
|
|
|
|
--- ipc/chromium/src/base/process_util.h.orig 2013-09-10 03:43:34.000000000 +0000
|
|
+++ ipc/chromium/src/base/process_util.h
|
|
@@ -13,7 +13,7 @@
|
|
#if defined(OS_WIN)
|
|
#include <windows.h>
|
|
#include <tlhelp32.h>
|
|
-#elif defined(OS_LINUX) || defined(__GLIBC__)
|
|
+#elif defined(OS_LINUX) || defined(__GLIBC__) || defined(OS_SOLARIS)
|
|
#include <dirent.h>
|
|
#include <limits.h>
|
|
#include <sys/types.h>
|
|
@@ -32,6 +32,9 @@
|
|
typedef PROCESSENTRY32 ProcessEntry;
|
|
typedef IO_COUNTERS IoCounters;
|
|
#elif defined(OS_POSIX)
|
|
+#ifndef NAME_MAX
|
|
+#define NAME_MAX _POSIX_NAME_MAX
|
|
+#endif
|
|
// TODO(port): we should not rely on a Win32 structure.
|
|
struct ProcessEntry {
|
|
int pid;
|
|
@@ -316,7 +319,7 @@ class NamedProcessIterator {
|
|
#if defined(OS_WIN)
|
|
HANDLE snapshot_;
|
|
bool started_iteration_;
|
|
-#elif defined(OS_LINUX) || defined(__GLIBC__)
|
|
+#elif defined(OS_LINUX) || defined(__GLIBC__) || defined(OS_SOLARIS)
|
|
DIR *procfs_dir_;
|
|
#elif defined(OS_BSD)
|
|
std::vector<ProcessEntry> content;
|