From f50bab643cd520434844224f96ea41ed87564620 Mon Sep 17 00:00:00 2001 From: Andrew Walbran Date: Tue, 7 Jul 2020 13:22:53 +0100 Subject: [PATCH] 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 Reviewed-by: Zach Reizner Commit-Queue: Andrew Walbran --- src/linux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linux.rs b/src/linux.rs index efc0aac821..1f87e3bcce 100644 --- a/src/linux.rs +++ b/src/linux.rs @@ -283,7 +283,7 @@ impl AsRawFd for TaggedControlSocket { } } -fn get_max_open_files() -> Result { +fn get_max_open_files() -> Result { let mut buf = mem::MaybeUninit::::zeroed(); // Safe because this will only modify `buf` and we check the return value.