diff --git a/src/unix/linux_like/linux/arch/mips/mod.rs b/src/unix/linux_like/linux/arch/mips/mod.rs index 0742630485757..eec53d7de8a0e 100644 --- a/src/unix/linux_like/linux/arch/mips/mod.rs +++ b/src/unix/linux_like/linux/arch/mips/mod.rs @@ -295,9 +295,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; } }