diff --git a/crates/fspy/src/unix/mod.rs b/crates/fspy/src/unix/mod.rs index 7f946005..98077a6d 100644 --- a/crates/fspy/src/unix/mod.rs +++ b/crates/fspy/src/unix/mod.rs @@ -89,10 +89,14 @@ impl SpyImpl { #[cfg(target_os = "linux")] let supervisor = supervise::().map_err(SpawnError::Supervisor)?; + #[cfg(not(target_env = "musl"))] let (ipc_channel_conf, ipc_receiver) = channel(SHM_CAPACITY).map_err(SpawnError::ChannelCreation)?; + #[cfg(target_env = "musl")] + let (_, ipc_receiver) = channel(SHM_CAPACITY).map_err(SpawnError::ChannelCreation)?; let payload = Payload { + #[cfg(not(target_env = "musl"))] ipc_channel_conf, #[cfg(target_os = "macos")] diff --git a/crates/fspy_shared_unix/src/payload.rs b/crates/fspy_shared_unix/src/payload.rs index e23f7ce0..d606ca47 100644 --- a/crates/fspy_shared_unix/src/payload.rs +++ b/crates/fspy_shared_unix/src/payload.rs @@ -5,10 +5,12 @@ use bincode::{Decode, Encode, config::standard}; use bstr::BString; #[cfg(not(target_env = "musl"))] use fspy_shared::ipc::NativeStr; +#[cfg(not(target_env = "musl"))] use fspy_shared::ipc::channel::ChannelConf; #[derive(Debug, Encode, Decode)] pub struct Payload { + #[cfg(not(target_env = "musl"))] pub ipc_channel_conf: ChannelConf, #[cfg(not(target_env = "musl"))]