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 ec384c7 commit 5c985b7Copy full SHA for 5c985b7
src/unix/linux_like/linux/musl/mod.rs
@@ -150,10 +150,15 @@ s! {
150
pub sa_restorer: ::Option<extern fn()>,
151
}
152
153
+ // `mips*` targets swap the `s_errno` and `s_code` fields otherwise this struct is
154
+ // target-agnostic (see https://www.openwall.com/lists/musl/2016/01/27/1/2)
155
pub struct siginfo_t {
156
pub si_signo: ::c_int,
157
+ #[cfg(not(target_arch = "mips"))]
158
pub si_errno: ::c_int,
159
pub si_code: ::c_int,
160
+ #[cfg(target_arch = "mips")]
161
+ pub si_errno: ::c_int,
162
#[doc(hidden)]
163
#[deprecated(
164
since="0.2.54",
0 commit comments