summaryrefslogtreecommitdiff
path: root/devel/electron6/files/patch-ipc_ipc__channel__mojo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron6/files/patch-ipc_ipc__channel__mojo.cc')
-rw-r--r--devel/electron6/files/patch-ipc_ipc__channel__mojo.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/electron6/files/patch-ipc_ipc__channel__mojo.cc b/devel/electron6/files/patch-ipc_ipc__channel__mojo.cc
new file mode 100644
index 000000000000..5047f69f2c01
--- /dev/null
+++ b/devel/electron6/files/patch-ipc_ipc__channel__mojo.cc
@@ -0,0 +1,15 @@
+--- ipc/ipc_channel_mojo.cc.orig 2019-09-10 11:14:07 UTC
++++ ipc/ipc_channel_mojo.cc
+@@ -64,10 +64,10 @@ class MojoChannelFactory : public ChannelFactory {
+ };
+
+ base::ProcessId GetSelfPID() {
+-#if defined(OS_LINUX)
++#if defined(OS_LINUX) || defined(OS_BSD)
+ if (int global_pid = Channel::GetGlobalPid())
+ return global_pid;
+-#endif // OS_LINUX
++#endif // OS_LINUX || OS_BSD
+ #if defined(OS_NACL)
+ return -1;
+ #else