summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-ipc_ipc__channel__posix.h
blob: e0d4690c6c551a2b432e0b1baf05051b9453e397 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- ipc/ipc_channel_posix.h.orig	2016-08-13 00:22:20.959322000 +0300
+++ ipc/ipc_channel_posix.h	2016-08-13 00:07:29.393338000 +0300
@@ -63,10 +63,10 @@
   void CloseClientFileDescriptor();

   static bool IsNamedServerInitialized(const std::string& channel_id);
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
   static void SetGlobalPid(int pid);
   static int GetGlobalPid();
-#endif  // OS_LINUX
+#endif  // OS_LINUX || defined(OS_BSD)

  private:
   bool CreatePipe(const IPC::ChannelHandle& channel_handle);
@@ -209,10 +209,10 @@
   // True if we are responsible for unlinking the unix domain socket file.
   bool must_unlink_;

-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_BSD)
   // If non-zero, overrides the process ID sent in the hello message.
   static int global_pid_;
-#endif  // OS_LINUX
+#endif  // OS_LINUX || defined(OS_BSD)

   DISALLOW_IMPLICIT_CONSTRUCTORS(ChannelPosix);
 };