We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d979c0b commit aa800b9Copy full SHA for aa800b9
src/unix/linux_like/mod.rs
@@ -1293,9 +1293,17 @@ pub const SI_LOAD_SHIFT: c_uint = 16;
1293
pub const SI_USER: c_int = 0;
1294
pub const SI_KERNEL: c_int = 0x80;
1295
pub const SI_QUEUE: c_int = -1;
1296
-pub const SI_TIMER: c_int = -2;
1297
-pub const SI_MESGQ: c_int = -3;
1298
-pub const SI_ASYNCIO: c_int = -4;
+cfg_if! {
+ if #[cfg(not(any(target_arch = "mips", target_arch = "mips32r6")))] {
+ pub const SI_TIMER: c_int = -2;
1299
+ pub const SI_MESGQ: c_int = -3;
1300
+ pub const SI_ASYNCIO: c_int = -4;
1301
+ } else {
1302
+ pub const SI_TIMER: c_int = -3;
1303
+ pub const SI_MESGQ: c_int = -4;
1304
+ pub const SI_ASYNCIO: c_int = -2;
1305
+ }
1306
+}
1307
pub const SI_SIGIO: c_int = -5;
1308
pub const SI_TKILL: c_int = -6;
1309
pub const SI_ASYNCNL: c_int = -60;
0 commit comments