--- cargo-crates/minidumper-0.10.1/src/ipc/client.rs.orig 2006-07-24 01:21:28 UTC +++ cargo-crates/minidumper-0.10.1/src/ipc/client.rs @@ -23,11 +23,12 @@ impl Client { /// with a server pub fn with_name<'scope>(sn: SocketName<'scope>) -> Result { cfg_if::cfg_if! { - if #[cfg(any(target_os = "linux", target_os = "android"))] { + if #[cfg(any(target_os = "linux", target_os = "android", target_os = "freebsd"))] { let socket_addr = match sn { SocketName::Path(path) => { uds::UnixSocketAddr::from_path(path).map_err(|_err| Error::InvalidName)? } + #[cfg(any(target_os = "linux", target_os = "android"))] SocketName::Abstract(name) => { uds::UnixSocketAddr::from_abstract(name).map_err(|_err| Error::InvalidName)? } @@ -97,7 +98,7 @@ impl Client { /// this method pub fn request_dump(&self, crash_context: &crash_context::CrashContext) -> Result<(), Error> { cfg_if::cfg_if! { - if #[cfg(any(target_os = "linux", target_os = "android"))] { + if #[cfg(any(target_os = "linux", target_os = "android", target_os = "freebsd"))] { let crash_ctx_buffer = crash_context.as_bytes(); } else if #[cfg(target_os = "windows")] { use scroll::Pwrite;