summaryrefslogtreecommitdiff
path: root/devel/libdatadog/files/patch-crashtracker-src-collector-emitters.rs
blob: 0972ee8b402790e916898d9f5b38b421a3b560c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- 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}")?;