From 78cec5c2d27204fd00273a8cf64492edc9156fba 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 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; } }