Skip to content

Commit 76072a6

Browse files
committed
musl: mips64: Swap order of si_errno and si_code in siginfo_t
All MIPS targets, 32-bit and 64-bit, swap these around. See: https://git.musl-libc.org/cgit/musl/tree/arch/mips64/bits/signal.h#n103 https://git.musl-libc.org/cgit/musl/tree/include/signal.h#n100 Signed-off-by: Jens Reidel <adrian@travitia.xyz>
1 parent 8e6f36c commit 76072a6

File tree

1 file changed

+2
-2
lines changed
  • src/unix/linux_like/linux/musl

1 file changed

+2
-2
lines changed

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ s! {
148148
// FIXME(union): C implementation uses unions
149149
pub struct siginfo_t {
150150
pub si_signo: c_int,
151-
#[cfg(not(target_arch = "mips"))]
151+
#[cfg(not(any(target_arch = "mips", target_arch = "mips64")))]
152152
pub si_errno: c_int,
153153
pub si_code: c_int,
154-
#[cfg(target_arch = "mips")]
154+
#[cfg(any(target_arch = "mips", target_arch = "mips64"))]
155155
pub si_errno: c_int,
156156
#[doc(hidden)]
157157
#[deprecated(

0 commit comments

Comments
 (0)