Skip to content

Commit 125b4f7

Browse files
committed
linux: Set RLIM_INFINITY for 32bit mips with __USE_TIME_BITS64
1 parent 616d546 commit 125b4f7

File tree

1 file changed

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

1 file changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,17 @@ cfg_if! {
359359
}
360360

361361
cfg_if! {
362-
if #[cfg(
362+
if #[cfg(all(
363363
any(target_arch = "mips", target_arch = "mips32r6"),
364-
any(target_env = "gnu", target_env = "uclibc")
365-
)] {
364+
any(target_env = "uclibc", target_env = "gnu"),
365+
linux_time_bits64
366+
))] {
367+
pub const RLIM_INFINITY: crate::rlim_t = !0;
368+
} else if #[cfg(all(
369+
any(target_arch = "mips", target_arch = "mips32r6"),
370+
any(target_env = "uclibc", target_env = "gnu"),
371+
not(linux_time_bits64)
372+
))] {
366373
pub const RLIM_INFINITY: crate::rlim_t = 0x7fffffff;
367374
}
368375
}

0 commit comments

Comments
 (0)