We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86b0b82 commit 50d9fd2Copy full SHA for 50d9fd2
src/unix/linux_like/linux/musl/mod.rs
@@ -146,10 +146,15 @@ s! {
146
pub sa_restorer: ::Option<extern fn()>,
147
}
148
149
+ // `mips*` targets swap the `s_errno` and `s_code` fields otherwise this struct is
150
+ // target-agnostic (see https://www.openwall.com/lists/musl/2016/01/27/1/2)
151
pub struct siginfo_t {
152
pub si_signo: ::c_int,
153
+ #[cfg(not(target_arch = "mips"))]
154
pub si_errno: ::c_int,
155
pub si_code: ::c_int,
156
+ #[cfg(target_arch = "mips")]
157
+ pub si_errno: ::c_int,
158
#[doc(hidden)]
159
#[deprecated(
160
since="0.2.54",
0 commit comments