Skip to content

Commit 8f97101

Browse files
committed
Set RLIM_INFINITY for mips GNU libc with _FILE_OFFSET_BITS=64
1 parent 7292636 commit 8f97101

File tree

1 file changed

+3
-3
lines changed
  • src/unix/linux_like/linux/arch/mips

1 file changed

+3
-3
lines changed

src/unix/linux_like/linux/arch/mips/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,9 @@ cfg_if! {
295295
}
296296

297297
cfg_if! {
298-
if #[cfg(target_arch = "mips",
299-
any(target_env = "gnu",
300-
target_env = "uclibc"))] {
298+
if #[cfg(all(target_arch = "mips", target_env = "gnu"))] {
299+
pub const RLIM_INFINITY: ::rlim_t = !0;
300+
} else if #[cfg(all(target_arch = "mips", target_env = "uclibc"))] {
301301
pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff;
302302
}
303303
}

0 commit comments

Comments
 (0)