fclones: fix 32-bit build

This commit is contained in:
termux-pacman-bot
2023-06-05 01:29:28 +00:00
parent b3fadf37bb
commit 7920358efd

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,