Skip to content

Commit 939d481

Browse files
committed
Windows compliation flag
1 parent a7d43ab commit 939d481

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

datadog-crashtracker/src/runtime_callback.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ pub unsafe fn clear_runtime_callback() {
311311
/// # Safety
312312
/// This function is intended to be called from signal handlers and must maintain
313313
/// signal safety. It does not perform any dynamic allocation.
314+
#[cfg(unix)]
314315
pub(crate) unsafe fn invoke_runtime_callback_with_writer<W: std::io::Write>(
315316
writer: &mut W,
316317
) -> Result<(), std::io::Error> {
@@ -386,6 +387,7 @@ pub(crate) unsafe fn invoke_runtime_callback_with_writer<W: std::io::Write>(
386387
///
387388
/// This function writes a RuntimeStackFrame directly as JSON without intermediate allocation.
388389
/// It must be signal-safe.
390+
#[cfg(unix)]
389391
unsafe fn emit_frame_as_json(
390392
writer: &mut dyn std::io::Write,
391393
frame: *const RuntimeStackFrame,

0 commit comments

Comments
 (0)