summaryrefslogtreecommitdiff
path: root/mail/thunderbird45/patches/patch-mozilla_ipc_chromium_src_base_process__util__posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mail/thunderbird45/patches/patch-mozilla_ipc_chromium_src_base_process__util__posix.cc')
-rw-r--r--mail/thunderbird45/patches/patch-mozilla_ipc_chromium_src_base_process__util__posix.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/mail/thunderbird45/patches/patch-mozilla_ipc_chromium_src_base_process__util__posix.cc b/mail/thunderbird45/patches/patch-mozilla_ipc_chromium_src_base_process__util__posix.cc
new file mode 100644
index 00000000000..e183c9d376c
--- /dev/null
+++ b/mail/thunderbird45/patches/patch-mozilla_ipc_chromium_src_base_process__util__posix.cc
@@ -0,0 +1,22 @@
+$NetBSD: patch-mozilla_ipc_chromium_src_base_process__util__posix.cc,v 1.1 2017/04/27 13:38:18 ryoon Exp $
+
+--- mozilla/ipc/chromium/src/base/process_util_posix.cc.orig 2016-04-07 21:33:19.000000000 +0000
++++ mozilla/ipc/chromium/src/base/process_util_posix.cc
+@@ -116,7 +116,7 @@ void CloseSuperfluousFds(const base::Inj
+ #if defined(ANDROID)
+ static const rlim_t kSystemDefaultMaxFds = 1024;
+ static const char kFDDir[] = "/proc/self/fd";
+-#elif defined(OS_LINUX)
++#elif defined(OS_LINUX) || defined(OS_SOLARIS)
+ static const rlim_t kSystemDefaultMaxFds = 8192;
+ static const char kFDDir[] = "/proc/self/fd";
+ #elif defined(OS_MACOSX)
+@@ -208,7 +208,7 @@ void CloseSuperfluousFds(const base::Inj
+ // TODO(agl): Remove this function. It's fundamentally broken for multithreaded
+ // apps.
+ void SetAllFDsToCloseOnExec() {
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_SOLARIS)
+ const char fd_dir[] = "/proc/self/fd";
+ #elif defined(OS_MACOSX) || defined(OS_BSD)
+ const char fd_dir[] = "/dev/fd";