1
0
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:
Roman Zeyde 2018-07-16 09:53:15 +03:00
parent 86e5cbda2e
commit 4f8d83f2d0
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -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,