Skip to content

Commit d4fe9e6

Browse files
snoggetgross35
authored andcommitted
gnu: Set RLIM_INFINITY for mips with gnu_file_offset_bits64
(backport <rust-lang#4345>) (cherry picked from commit 5c5c364)
1 parent d788f3a commit d4fe9e6

File tree

1 file changed

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

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,13 @@ cfg_if! {
379379
cfg_if! {
380380
if #[cfg(all(
381381
any(target_arch = "mips", target_arch = "mips32r6"),
382-
any(target_env = "uclibc", target_env = "gnu"),
383-
linux_time_bits64
382+
any(
383+
all(target_env = "uclibc", linux_time_bits64),
384+
all(
385+
target_env = "gnu",
386+
any(linux_time_bits64, gnu_file_offset_bits64)
387+
)
388+
)
384389
))] {
385390
pub const RLIM_INFINITY: crate::rlim_t = !0;
386391
} else if #[cfg(all(

0 commit comments

Comments
 (0)