From e29ce0d4c1a3ff09913e4f0d3bfd5553fe5a770b Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 19 Mar 2025 12:27:21 -0600 Subject: [PATCH] Fix compilation with process feature on other Unixes --- src/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process.rs b/src/process.rs index f76dad7..b1a3ae0 100644 --- a/src/process.rs +++ b/src/process.rs @@ -32,7 +32,7 @@ pub async fn spawn(mut command: Command) -> Option { .stderr(Stdio::null()); // Handle Linux - #[cfg(target_os = "linux")] + #[cfg(all(unix, not(target_os = "macos")))] let Ok((read, write)) = rustix::pipe::pipe_with(rustix::pipe::PipeFlags::CLOEXEC) else { return None; };