From cb9b8f12456f5a0da72068fed1cc4ec86fd48bb4 Mon Sep 17 00:00:00 2001 From: Ola x Nilsson Date: Mon, 27 Mar 2023 14:30:10 +0200 Subject: [PATCH] Set RLIM_INFINITY for mips GNU libc with _FILE_OFFSET_BITS=64 --- src/unix/linux_like/linux/arch/mips/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } }