Skip to content

Commit f6ef256

Browse files
committed
linux: Set RLIM_INFINITY for 32bit mips with __USE_TIME_BITS64
1 parent e17ff8d commit f6ef256

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
@@ -361,10 +361,17 @@ cfg_if! {
361361
}
362362

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

0 commit comments

Comments
 (0)