File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,19 @@ impl siginfo_t {
50
50
}
51
51
52
52
pub unsafe fn si_value ( & self ) -> :: sigval {
53
- self . si_value
53
+ #[ repr( C ) ]
54
+ pub struct siginfo_timer {
55
+ _si_signo : :: c_int ,
56
+ _si_errno : :: c_int ,
57
+ _si_code : :: c_int ,
58
+ _si_pid : :: pid_t ,
59
+ _si_uid : :: uid_t ,
60
+ _si_status : :: c_int ,
61
+ _si_addr : * mut :: c_void ,
62
+ si_value : :: sigval ,
63
+ }
64
+
65
+ ( * ( self as * const siginfo_t as * const siginfo_timer ) ) . si_value
54
66
}
55
67
}
56
68
154
166
pub si_uid: :: uid_t,
155
167
pub si_status: :: c_int,
156
168
pub si_addr: * mut :: c_void,
157
- pub si_value : :: sigval ,
158
- pub si_band : :: c_long ,
159
- _pad: [ usize ; 7 ] ,
169
+ //Requires it to be union for tests
170
+ // pub si_value : ::sigval ,
171
+ _pad: [ usize ; 9 ] ,
160
172
}
161
173
162
174
pub struct sigaction {
You can’t perform that action at this time.
0 commit comments