Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d266906

Browse files
Gelbpunkttgross35
authored andcommitted
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 <[email protected]> (backport <#4530>) (cherry picked from commit 76072a6)
1 parent 4c96110 commit d266906

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
@@ -157,10 +157,10 @@ s! {
157157
// FIXME(union): C implementation uses unions
158158
pub struct siginfo_t {
159159
pub si_signo: c_int,
160-
#[cfg(not(target_arch = "mips"))]
160+
#[cfg(not(any(target_arch = "mips", target_arch = "mips64")))]
161161
pub si_errno: c_int,
162162
pub si_code: c_int,
163-
#[cfg(target_arch = "mips")]
163+
#[cfg(any(target_arch = "mips", target_arch = "mips64"))]
164164
pub si_errno: c_int,
165165
#[doc(hidden)]
166166
#[deprecated(

0 commit comments

Comments
 (0)