fclones: fix 32-bit build

This commit is contained in:
Lucy Phipps 2023-06-05 02:04:14 +01:00 committed by GitHub
parent 9d6fcc5c4d
commit c64ec36fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/rlimit.rs b/src/rlimit.rs
index f30d8dc..b844aa9 100644
--- a/src/rlimit.rs
+++ b/src/rlimit.rs
@@ -8,7 +8,7 @@ use std::sync::Arc;
#[cfg(unix)]
// Get the maximum number of open file descriptors for this process, and if
// the hard limit is larger than the soft limit increase it.
-fn rlimit_nofile() -> u64 {
+fn rlimit_nofile() -> libc::rlim_t {
let mut file_limit = libc::rlimit {
rlim_cur: 0,
rlim_max: 0,