aboutsummaryrefslogtreecommitdiff
path: root/www/iridium/files/patch-mojo_core_channel.cc
blob: 8e4d3cc8f3ae73e3078616a04d0d77c276b58c6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- mojo/core/channel.cc.orig	2023-03-13 07:33:08 UTC
+++ mojo/core/channel.cc
@@ -75,7 +75,11 @@ const size_t kMaxUnusedReadBufferCapacity = 4096;
 // Fuchsia: The zx_channel_write() API supports up to 64 handles.
 const size_t kMaxAttachedHandles = 64;
 
+#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