diff options
author | bors <bors@rust-lang.org> | 2019-10-16 06:00:30 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2019-10-16 06:00:30 +0000 |
commit | e857f95106c3b701afc6b131bf41857bec3d3d32 (patch) | |
tree | ad79c15e43bc260e173948b43263ccac83fdc28c /src | |
parent | 6a25288b773f4e822f51cfec61f988c18c8bb746 (diff) | |
parent | 3166091b00204c773e7c515c2cdfe0f0172e559d (diff) | |
download | rust-libc-e857f95106c3b701afc6b131bf41857bec3d3d32.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/unix/linux_like/android/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/linux_like/android/mod.rs b/src/unix/linux_like/android/mod.rs index 74c64e5ec7..4c4a29669b 100644 --- a/src/unix/linux_like/android/mod.rs +++ b/src/unix/linux_like/android/mod.rs @@ -1099,6 +1099,8 @@ pub const RLIMIT_MSGQUEUE: ::c_int = 12; pub const RLIMIT_NICE: ::c_int = 13; pub const RLIMIT_RTPRIO: ::c_int = 14; +pub const RLIM_INFINITY: ::rlim_t = !0; + pub const TCGETS: ::c_int = 0x5401; pub const TCSETS: ::c_int = 0x5402; pub const TCSETSW: ::c_int = 0x5403; |