Skip to content

Commit 78cec5c

Browse files
committed
Set RLIM_INFINITY for mips GNU libc with _FILE_OFFSET_BITS=64
1 parent 0664524 commit 78cec5c

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@ cfg_if! {
292292
}
293293

294294
cfg_if! {
295-
if #[cfg(target_arch = "mips",
296-
any(target_env = "gnu",
297-
target_env = "uclibc"))] {
295+
if #[cfg(all(target_arch = "mips", target_env = "gnu"))] {
296+
pub const RLIM_INFINITY: ::rlim_t = !0;
297+
} else if #[cfg(all(target_arch = "mips", target_env = "uclibc"))] {
298298
pub const RLIM_INFINITY: ::rlim_t = 0x7fffffff;
299299
}
300300
}

0 commit comments

Comments
 (0)