blob: d224262fb180a58cf8ee52844634af0dfc1039ac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- mojo/core/channel.cc.orig 2025-06-30 07:04:30 UTC
+++ mojo/core/channel.cc
@@ -85,7 +85,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
|