Skip to content

Commit cbf2bae

Browse files
committed
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.
1 parent 4b9b07c commit cbf2bae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/unix/bsd/openbsdlike/openbsd.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ s! {
9999
pub si_signo: ::c_int,
100100
pub si_code: ::c_int,
101101
pub si_errno: ::c_int,
102-
__pad1: ::c_int,
103-
__pad2: [u8; 240],
102+
pub si_addr: *mut ::c_void,
104103
}
105104
}
106105

0 commit comments

Comments
 (0)