openbsd: map si_addr inside struct siginfo_t

formally, under OpenBSD, `si_addr` is part of a C union. As we don't use
others members of the union inside `struct siginfo_t`, it should be safe
to directly map the field.
This commit is contained in:
Sébastien Marie 2015-12-19 06:59:56 +01:00
parent 4b9b07c719
commit 73a2dbce11

View File

@ -99,8 +99,8 @@ s! {
pub si_signo: ::c_int,
pub si_code: ::c_int,
pub si_errno: ::c_int,
__pad1: ::c_int,
__pad2: [u8; 240],
pub si_addr: *mut ::c_void,
__pad: [u8; 116],
}
}