rlim64_t doesn't exist on Android, use u64.

rlim64_t is defined as u64 in the 'Linux' version of the libc crate for
all architectures, so this shouldn't change current behaviour.

BUG=b:158290206
TEST=cargo test

Change-Id: Ie04a212c0dadcfc3010f13a058064ff75c7835a5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2283335
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Commit-Queue: Andrew Walbran <qwandor@google.com>
This commit is contained in:
Andrew Walbran 2020-07-07 13:22:53 +01:00 committed by Commit Bot
parent 2ced42be12
commit f50bab643c

View file

@ -283,7 +283,7 @@ impl AsRawFd for TaggedControlSocket {
}
}
fn get_max_open_files() -> Result<libc::rlim64_t> {
fn get_max_open_files() -> Result<u64> {
let mut buf = mem::MaybeUninit::<libc::rlimit64>::zeroed();
// Safe because this will only modify `buf` and we check the return value.