Skip to content

Commit 6dc3868

Browse files
committed
use proper type of si_addr in siginfo_t
under openbsd it is a `caddr_t` which expand to `char *`. as the size of the type change, adjust the padding too.
1 parent b1a108c commit 6dc3868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/bsd/openbsdlike/openbsd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ s! {
9999
pub si_signo: ::c_int,
100100
pub si_code: ::c_int,
101101
pub si_errno: ::c_int,
102-
pub si_addr: *mut ::c_void,
103-
__pad: [u8; 116],
102+
pub si_addr: *mut ::c_char,
103+
__pad: [u8; 108],
104104
}
105105

106106
pub struct Dl_info {

0 commit comments

Comments
 (0)