mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
49 lines
1.9 KiB
C++
49 lines
1.9 KiB
C++
$NetBSD: patch-ipc_glue_GeckoChildProcessHost.cpp,v 1.1 2014/11/03 12:18:32 ryoon Exp $
|
|
|
|
* Just because OS_ARCH is Darwin does not mean MacOS X specific
|
|
kludges are needed.
|
|
|
|
--- ipc/glue/GeckoChildProcessHost.cpp.orig 2014-05-29 23:30:53.000000000 +0000
|
|
+++ ipc/glue/GeckoChildProcessHost.cpp
|
|
@@ -4,7 +4,13 @@
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
+#if defined(__NetBSD__)
|
|
+_Pragma("GCC visibility push(default)")
|
|
+#endif
|
|
#include "GeckoChildProcessHost.h"
|
|
+#if defined(__NetBSD__)
|
|
+_Pragma("GCC visibility pop")
|
|
+#endif
|
|
|
|
#if defined(XP_WIN) && defined(MOZ_CONTENT_SANDBOX)
|
|
#include "sandboxBroker.h"
|
|
@@ -548,7 +554,7 @@ GeckoChildProcessHost::PerformAsyncLaunc
|
|
// and passing wstrings from one config to the other is unsafe. So
|
|
// we split the logic here.
|
|
|
|
-#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD)
|
|
+#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) || defined(OS_SOLARIS)
|
|
base::environment_map newEnvVars;
|
|
ChildPrivileges privs = mPrivileges;
|
|
if (privs == base::PRIVILEGES_DEFAULT) {
|
|
@@ -671,7 +677,7 @@ GeckoChildProcessHost::PerformAsyncLaunc
|
|
childArgv.push_back(pidstring);
|
|
|
|
#if defined(MOZ_CRASHREPORTER)
|
|
-# if defined(OS_LINUX) || defined(OS_BSD)
|
|
+# if defined(OS_LINUX) || defined(OS_BSD) || defined(OS_SOLARIS)
|
|
int childCrashFd, childCrashRemapFd;
|
|
if (!CrashReporter::CreateNotificationPipeForChild(
|
|
&childCrashFd, &childCrashRemapFd))
|
|
@@ -704,7 +710,7 @@ GeckoChildProcessHost::PerformAsyncLaunc
|
|
childArgv.push_back(childProcessType);
|
|
|
|
base::LaunchApp(childArgv, mFileMap,
|
|
-#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD)
|
|
+#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD) || defined(OS_SOLARIS)
|
|
newEnvVars, privs,
|
|
#endif
|
|
false, &process, arch);
|