aboutsummaryrefslogtreecommitdiff
path: root/devel/electron39/files/patch-ipc_ipc__channel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron39/files/patch-ipc_ipc__channel.cc')
-rw-r--r--devel/electron39/files/patch-ipc_ipc__channel.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron39/files/patch-ipc_ipc__channel.cc b/devel/electron39/files/patch-ipc_ipc__channel.cc
new file mode 100644
index 000000000000..026140deb02b
--- /dev/null
+++ b/devel/electron39/files/patch-ipc_ipc__channel.cc
@@ -0,0 +1,20 @@
+--- ipc/ipc_channel.cc.orig 2025-10-21 20:19:54 UTC
++++ ipc/ipc_channel.cc
+@@ -22,7 +22,7 @@ base::AtomicSequenceNumber g_last_id;
+ // Global atomic used to guarantee channel IDs are unique.
+ base::AtomicSequenceNumber g_last_id;
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+
+ int g_global_pid = 0;
+
+@@ -60,7 +60,7 @@ std::string Channel::GenerateUniqueRandomChannelID() {
+ base::RandInt(0, std::numeric_limits<int32_t>::max()));
+ }
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ // static
+ void Channel::SetGlobalPid(int pid) {
+ g_global_pid = pid;