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:
parent
4b9b07c719
commit
73a2dbce11
@ -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],
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user