From 7757931e8e147b1a46ef62e553b258a011f802a3 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 24 Sep 2010 00:26:29 -0400 Subject: [PATCH] On 64bit this is turning into a 16 byte struct, this works around the issue. --- mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs b/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs index 902ecc2e29f..9edf9d3f650 100644 --- a/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs +++ b/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs @@ -1165,7 +1165,7 @@ namespace Mono.Unix.Native { EPOLL_CTL_MOD = 3, } - [StructLayout (LayoutKind.Explicit, Size=12)] + [StructLayout (LayoutKind.Explicit, Size=12, Pack=1)] public struct EpollEvent { [FieldOffset (0)] public EpollEvents events; -- GitLab