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 Mar 29, 2023
1 parent 0664524 commit 78cec5c
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 @@ -292,9 +292,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 78cec5c

Please sign in to comment.