fix 32 bit musl build: expected `i64`, found `i32`
Browse files at this commitf18f27742bad0735589144880caaa421931d8eb6Parent: 90af6371 changed file +5 -1
- src/utils/spawning.rs +5 -1
src/utils/spawning.rsmodified+5 -1
| @@ -220,7 +220,11 @@ mod systemd { | ||
| 220 | 220 | use libc::closefrom; |
| 221 | 221 | |
| 222 | 222 | #[cfg(not(target_env = "gnu"))] // musl |
| 223 | - pub fn close_range(first: libc::c_uint, last: libc::c_uint, flags: libc::c_uint) -> i64 { | |
| 223 | + pub fn close_range( | |
| 224 | + first: libc::c_uint, | |
| 225 | + last: libc::c_uint, | |
| 226 | + flags: libc::c_uint, | |
| 227 | + ) -> libc::c_long { | |
| 224 | 228 | unsafe { |
| 225 | 229 | libc::syscall( |
| 226 | 230 | libc::SYS_close_range, |