Skip to content

Commit b6012d1

Browse files
Gelbpunkttgross35
authored andcommitted
linux_like: mips64: Fix SI_TIMER, SI_MESGQ and SI_ASYNCIO definitions
mips64 uses the same definitions for these as the 32-bit targets. See e.g.: https://github.com/torvalds/linux/blob/master/arch/mips/include/uapi/asm/siginfo.h#L21 https://git.musl-libc.org/cgit/musl/tree/arch/mips64/bits/signal.h#n96 Signed-off-by: Jens Reidel <[email protected]> (backport <#4529>) (cherry picked from commit dff820c)
1 parent d266906 commit b6012d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/unix/linux_like/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,11 @@ pub const SI_USER: c_int = 0;
12691269
pub const SI_KERNEL: c_int = 0x80;
12701270
pub const SI_QUEUE: c_int = -1;
12711271
cfg_if! {
1272-
if #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))] {
1272+
if #[cfg(not(any(
1273+
target_arch = "mips",
1274+
target_arch = "mips32r6",
1275+
target_arch = "mips64"
1276+
)))] {
12731277
pub const SI_TIMER: c_int = -2;
12741278
pub const SI_MESGQ: c_int = -3;
12751279
pub const SI_ASYNCIO: c_int = -4;

0 commit comments

Comments
 (0)