Skip to content

Commit dff820c

Browse files
committed
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 <adrian@travitia.xyz>
1 parent 8e6f36c commit dff820c

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
@@ -1268,7 +1268,11 @@ pub const SI_USER: c_int = 0;
12681268
pub const SI_KERNEL: c_int = 0x80;
12691269
pub const SI_QUEUE: c_int = -1;
12701270
cfg_if! {
1271-
if #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))] {
1271+
if #[cfg(not(any(
1272+
target_arch = "mips",
1273+
target_arch = "mips32r6",
1274+
target_arch = "mips64"
1275+
)))] {
12721276
pub const SI_TIMER: c_int = -2;
12731277
pub const SI_MESGQ: c_int = -3;
12741278
pub const SI_ASYNCIO: c_int = -4;

0 commit comments

Comments
 (0)