mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-03 09:30:14 +00:00
fclones: fix 32-bit build
This commit is contained in:
13
packages/fclones/rlimit.rs.patch
Normal file
13
packages/fclones/rlimit.rs.patch
Normal 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,
|
||||
Reference in New Issue
Block a user