aboutsummaryrefslogtreecommitdiff
path: root/devel/electron39/files/patch-mojo_core_channel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron39/files/patch-mojo_core_channel.cc')
-rw-r--r--devel/electron39/files/patch-mojo_core_channel.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/devel/electron39/files/patch-mojo_core_channel.cc b/devel/electron39/files/patch-mojo_core_channel.cc
new file mode 100644
index 000000000000..ce9b4ddb2b67
--- /dev/null
+++ b/devel/electron39/files/patch-mojo_core_channel.cc
@@ -0,0 +1,23 @@
+--- mojo/core/channel.cc.orig 2025-10-21 20:19:54 UTC
++++ mojo/core/channel.cc
+@@ -81,7 +81,11 @@ const size_t kMaxAttachedHandles = 253;
+ const size_t kMaxAttachedHandles = 253;
+ #endif // BUILDFLAG(IS_FUCHSIA)
+
++#if defined(__i386__) && defined(OS_FREEBSD)
++const size_t kChannelMessageAlignment = 4;
++#else
+ static_assert(alignof(std::max_align_t) >= kChannelMessageAlignment, "");
++#endif
+ Channel::AlignedBuffer MakeAlignedBuffer(size_t size) {
+ // Generic allocators (such as malloc) return a pointer that is suitably
+ // aligned for storing any type of object with a fundamental alignment
+@@ -1121,7 +1125,7 @@ bool Channel::OnControlMessage(Message::MessageType me
+ }
+
+ // Currently only CrOs, Linux, and Android support upgrades.
+-#if !(BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID))
++#if !(BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD))
+ // static
+ MOJO_SYSTEM_IMPL_EXPORT bool Channel::SupportsChannelUpgrade() {
+ return false;