mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
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:
parent
2ced42be12
commit
f50bab643c
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue