We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e021460 + 1f8474e commit c6976e4Copy full SHA for c6976e4
src/unix/linux_like/mod.rs
@@ -1292,9 +1292,17 @@ pub const SI_LOAD_SHIFT: c_uint = 16;
1292
pub const SI_USER: c_int = 0;
1293
pub const SI_KERNEL: c_int = 0x80;
1294
pub const SI_QUEUE: c_int = -1;
1295
-pub const SI_TIMER: c_int = -2;
1296
-pub const SI_MESGQ: c_int = -3;
1297
-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;
1298
+ pub const SI_MESGQ: c_int = -3;
1299
+ pub const SI_ASYNCIO: c_int = -4;
1300
+ } else {
1301
+ pub const SI_TIMER: c_int = -3;
1302
+ pub const SI_MESGQ: c_int = -4;
1303
+ pub const SI_ASYNCIO: c_int = -2;
1304
+ }
1305
+}
1306
pub const SI_SIGIO: c_int = -5;
1307
pub const SI_TKILL: c_int = -6;
1308
pub const SI_ASYNCNL: c_int = -60;
0 commit comments