rust: trace: libc does not have syslog on windows

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini
2026-01-13 18:18:57 +01:00
parent f26976b9d3
commit a05b986d74

View File

@@ -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};