mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 09:54:09 +01:00
Allow calling setrlimit() on 32-bit systems
This commit is contained in:
parent
86e5cbda2e
commit
4f8d83f2d0
@ -151,7 +151,7 @@ fn load_headers(daemon: &Daemon) -> Result<HeaderList> {
|
||||
Ok(headers)
|
||||
}
|
||||
|
||||
fn set_open_files_limit(limit: u64) {
|
||||
fn set_open_files_limit(limit: libc::rlim_t) {
|
||||
let resource = libc::RLIMIT_NOFILE;
|
||||
let mut rlim = libc::rlimit {
|
||||
rlim_cur: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user