mirror of
https://git.freebsd.org/ports.git
synced 2025-05-01 11:06:39 -04:00
11 lines
480 B
Rust
11 lines
480 B
Rust
--- crashtracker/src/collector/emitters.rs.orig 2025-02-11 17:46:31 UTC
|
|
+++ crashtracker/src/collector/emitters.rs
|
|
@@ -151,7 +151,7 @@ fn emit_proc_self_maps(w: &mut impl Write) -> anyhow::
|
|
Ok(())
|
|
}
|
|
|
|
-#[cfg(target_os = "linux")]
|
|
+#[cfg(any(target_os = "freebsd", target_os = "linux"))]
|
|
fn emit_ucontext(w: &mut impl Write, ucontext: *const ucontext_t) -> anyhow::Result<()> {
|
|
anyhow::ensure!(!ucontext.is_null());
|
|
writeln!(w, "{DD_CRASHTRACK_BEGIN_UCONTEXT}")?;
|