Closed
Description
The types:
kevent
shmid_ds
should have 4-byte alignment, but on 64-bit macosx they have 8-byte alignment.
This means that:
- the size of these structs is wrong
- the offset of some fields within the struct is wrong
I tried to use #[repr(align(4))]
on these to enforce the alignment, but this did not change anything.
See https://github.com/rust-lang/libc/pull/912/files#diff-747c41e91bd79d9208c2953b72047176R418