summaryrefslogtreecommitdiff
path: root/devel/electron7/files/patch-ipc_ipc__channel__mojo.cc
blob: 77912615d3776246e5d6ff0f5d66bcad66f0dd9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- ipc/ipc_channel_mojo.cc.orig	2019-12-12 12:39:49 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