diff --git a/src/unix/linux_like/linux/arch/mips/mod.rs b/src/unix/linux_like/linux/arch/mips/mod.rs index 1de1ed15e9b47..bd8414d3554cc 100644 --- a/src/unix/linux_like/linux/arch/mips/mod.rs +++ b/src/unix/linux_like/linux/arch/mips/mod.rs @@ -292,9 +292,9 @@ cfg_if! { } cfg_if! { - if #[cfg(target_arch = "mips", - any(target_env = "gnu", - target_env = "uclibc"))] { + if #[cfg(all(target_arch = "mips", target_env = "gnu"))] { + pub const RLIM_INFINITY: ::rlim_t = !0; + } else if #[cfg(all(target_arch = "mips", target_env = "uclibc"))] { pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff; } }