From a05b986d74d04ac47f5e4ef9cfa8a3ff160d5a82 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 13 Jan 2026 18:18:57 +0100 Subject: [PATCH] rust: trace: libc does not have syslog on windows Reported-by: Thomas Huth Signed-off-by: Paolo Bonzini --- rust/trace/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/trace/src/lib.rs b/rust/trace/src/lib.rs index c2abe430a5..859d8d1b94 100644 --- a/rust/trace/src/lib.rs +++ b/rust/trace/src/lib.rs @@ -3,6 +3,7 @@ //! This crate provides macros that aid in using QEMU's tracepoint //! functionality. +#[cfg(not(windows))] #[doc(hidden)] /// Re-exported item to avoid adding libc as a dependency everywhere. pub use libc::{syslog, LOG_INFO};