1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-24 22:20:35 -04:00
ports/devel/electron4/files/patch-mojo_public_c_system_buffer.h
Luca Pizzamiglio bff3cf7b2c devel/electron4: Update to 4.2.4
Moreover, fix the build on CURRENT and 11.3 BETA

Submitted by:	maintainer
2019-06-11 08:55:28 +00:00

11 lines
548 B
C

--- mojo/public/c/system/buffer.h.orig 2019-03-19 09:06:10 UTC
+++ mojo/public/c/system/buffer.h
@@ -30,7 +30,7 @@ struct MOJO_ALIGNAS(8) MojoCreateSharedBufferOptions {
// See |MojoCreateSharedBufferFlags|.
MojoCreateSharedBufferFlags flags;
};
-MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) == 8, "int64_t has weird alignment");
+MOJO_STATIC_ASSERT(MOJO_ALIGNOF(int64_t) <= 8, "int64_t has weird alignment");
MOJO_STATIC_ASSERT(sizeof(MojoCreateSharedBufferOptions) == 8,
"MojoCreateSharedBufferOptions has wrong size");