Skip to content

Commit addcd64

Browse files
committed
linux: Set RLIM_INFINITY for mips GNU libc with _FILE_OFFSET_BITS=64
1 parent 1a163c6 commit addcd64

File tree

1 file changed

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

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,12 @@ cfg_if! {
330330
}
331331

332332
cfg_if! {
333-
if #[cfg(any(target_arch = "mips", target_arch = "mips32r6"),
334-
any(target_env = "gnu",
335-
target_env = "uclibc"))] {
333+
if #[cfg(all(gnu_time64_abi, any(target_arch = "mips", target_arch = "mips32r6")))] {
334+
pub const RLIM_INFINITY: ::rlim_t = !0;
335+
} else if #[cfg(all(
336+
any(target_arch = "mips", target_arch = "mips32r6"),
337+
any(target_env = "uclibc", all(target_env = "gnu", not(gnu_time64_abi)))
338+
))] {
336339
pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff;
337340
}
338341
}

0 commit comments

Comments
 (0)