From f18f27742bad0735589144880caaa421931d8eb6 Mon Sep 17 00:00:00 2001 From: Pepper Gray Date: Mon, 12 Oct 2026 19:37:05 +0200 Subject: [PATCH] fix 32 bit musl build: expected `i64`, found `i32` building on 32-bit musl ppc fails with error: ``` expected `i64` because of return type ``` due to libc::syscall returning long which is `i32` on 32 bit systems. Closes: #4681 Signed-off-by: Pepper Gray --- src/utils/spawning.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/spawning.rs b/src/utils/spawning.rs index b3ba57b9..20d4184b 100644 --- a/src/utils/spawning.rs +++ b/src/utils/spawning.rs @@ -220,7 +220,11 @@ mod systemd { use libc::closefrom; #[cfg(not(target_env = "gnu"))] // musl - pub fn close_range(first: libc::c_uint, last: libc::c_uint, flags: libc::c_uint) -> i64 { + pub fn close_range( + first: libc::c_uint, + last: libc::c_uint, + flags: libc::c_uint, + ) -> libc::c_long { unsafe { libc::syscall( libc::SYS_close_range,