mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 753046 - Add IPC support for BSDs, ipc/glue part. r=cjones
This commit is contained in:
parent
15d5f62603
commit
f741a2a7bc
@ -437,7 +437,7 @@ GeckoChildProcessHost::PerformAsyncLaunchInternal(std::vector<std::string>& aExt
|
|||||||
// and passing wstrings from one config to the other is unsafe. So
|
// and passing wstrings from one config to the other is unsafe. So
|
||||||
// we split the logic here.
|
// we split the logic here.
|
||||||
|
|
||||||
#if defined(OS_LINUX) || defined(OS_MACOSX)
|
#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD)
|
||||||
base::environment_map newEnvVars;
|
base::environment_map newEnvVars;
|
||||||
base::ChildPrivileges privs = kLowRightsSubprocesses ?
|
base::ChildPrivileges privs = kLowRightsSubprocesses ?
|
||||||
base::UNPRIVILEGED :
|
base::UNPRIVILEGED :
|
||||||
@ -455,8 +455,8 @@ GeckoChildProcessHost::PerformAsyncLaunchInternal(std::vector<std::string>& aExt
|
|||||||
if (NS_SUCCEEDED(rv)) {
|
if (NS_SUCCEEDED(rv)) {
|
||||||
nsCString path;
|
nsCString path;
|
||||||
greDir->GetNativePath(path);
|
greDir->GetNativePath(path);
|
||||||
# ifdef OS_LINUX
|
# if defined(OS_LINUX) || defined(OS_BSD)
|
||||||
# ifdef MOZ_WIDGET_ANDROID
|
# if defined(MOZ_WIDGET_ANDROID) || defined(OS_BSD)
|
||||||
path += "/lib";
|
path += "/lib";
|
||||||
# endif // MOZ_WIDGET_ANDROID
|
# endif // MOZ_WIDGET_ANDROID
|
||||||
const char *ld_library_path = PR_GetEnv("LD_LIBRARY_PATH");
|
const char *ld_library_path = PR_GetEnv("LD_LIBRARY_PATH");
|
||||||
@ -575,7 +575,7 @@ GeckoChildProcessHost::PerformAsyncLaunchInternal(std::vector<std::string>& aExt
|
|||||||
childArgv.push_back(pidstring);
|
childArgv.push_back(pidstring);
|
||||||
|
|
||||||
#if defined(MOZ_CRASHREPORTER)
|
#if defined(MOZ_CRASHREPORTER)
|
||||||
# if defined(OS_LINUX)
|
# if defined(OS_LINUX) || defined(OS_BSD)
|
||||||
int childCrashFd, childCrashRemapFd;
|
int childCrashFd, childCrashRemapFd;
|
||||||
if (!CrashReporter::CreateNotificationPipeForChild(
|
if (!CrashReporter::CreateNotificationPipeForChild(
|
||||||
&childCrashFd, &childCrashRemapFd))
|
&childCrashFd, &childCrashRemapFd))
|
||||||
@ -612,7 +612,7 @@ GeckoChildProcessHost::PerformAsyncLaunchInternal(std::vector<std::string>& aExt
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
base::LaunchApp(childArgv, mFileMap,
|
base::LaunchApp(childArgv, mFileMap,
|
||||||
#if defined(OS_LINUX) || defined(OS_MACOSX)
|
#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_BSD)
|
||||||
newEnvVars, privs,
|
newEnvVars, privs,
|
||||||
#endif
|
#endif
|
||||||
false, &process, arch);
|
false, &process, arch);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#ifndef mozilla_ipc_SharedMemorySysV_h
|
#ifndef mozilla_ipc_SharedMemorySysV_h
|
||||||
#define mozilla_ipc_SharedMemorySysV_h
|
#define mozilla_ipc_SharedMemorySysV_h
|
||||||
|
|
||||||
#if defined(OS_LINUX) && !defined(ANDROID)
|
#if (defined(OS_LINUX) && !defined(ANDROID)) || defined(OS_BSD)
|
||||||
|
|
||||||
// SysV shared memory isn't available on Windows, but we define the
|
// SysV shared memory isn't available on Windows, but we define the
|
||||||
// following macro so that #ifdefs are clearer (compared to #ifdef
|
// following macro so that #ifdefs are clearer (compared to #ifdef
|
||||||
|
Loading…
Reference in New Issue
Block a user