Skip to content

Commit e857f95

Browse files
committed
Auto merge of #1541 - Hylian:android-rlim-infinity, r=gnzlbg
Add `RLIM_INFINITY` definition for Android This adds the definition for `RLIM_INFINITY` to Android, mirroring the Linux definition. Ran into this while trying to build `sccache` natively in Termux on Android, and is the only thing preventing `sccache` from building on libc master.
2 parents 6a25288 + 3166091 commit e857f95

File tree

1 file changed

+2
-0
lines changed
  • src/unix/linux_like/android

1 file changed

+2
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,8 @@ pub const RLIMIT_MSGQUEUE: ::c_int = 12;
10991099
pub const RLIMIT_NICE: ::c_int = 13;
11001100
pub const RLIMIT_RTPRIO: ::c_int = 14;
11011101

1102+
pub const RLIM_INFINITY: ::rlim_t = !0;
1103+
11021104
pub const TCGETS: ::c_int = 0x5401;
11031105
pub const TCSETS: ::c_int = 0x5402;
11041106
pub const TCSETSW: ::c_int = 0x5403;

0 commit comments

Comments
 (0)