Skip to content

Commit

Permalink
Set RLIM_INFINITY for mips GNU libc with _FILE_OFFSET_BITS=64
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Apr 24, 2023
1 parent 00b53ff commit cb9b8f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unix/linux_like/linux/arch/mips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ cfg_if! {
}

cfg_if! {
if #[cfg(target_arch = "mips",
any(target_env = "gnu",
target_env = "uclibc"))] {
if #[cfg(all(target_arch = "mips", target_env = "gnu"))] {
pub const RLIM_INFINITY: ::rlim_t = !0;
} else if #[cfg(all(target_arch = "mips", target_env = "uclibc"))] {
pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff;
}
}

0 comments on commit cb9b8f1

Please sign in to comment.