Skip to content

Commit aa82340

Browse files
committed
gnu: Set RLIM_INFINITY for mips with gnu_file_offset_bits64
1 parent 139d123 commit aa82340

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,12 @@ cfg_if! {
383383
linux_time_bits64
384384
))] {
385385
pub const RLIM_INFINITY: crate::rlim_t = !0;
386+
} else if #[cfg(all(
387+
any(target_arch = "mips", target_arch = "mips32r6"),
388+
target_env = "gnu",
389+
gnu_file_offset_bits64
390+
))] {
391+
pub const RLIM_INFINITY: crate::rlim_t = !0;
386392
} else if #[cfg(all(
387393
any(target_arch = "mips", target_arch = "mips32r6"),
388394
any(target_env = "uclibc", target_env = "gnu"),

0 commit comments

Comments
 (0)