Skip to contentSkip to conversation

rust: trace: libc does not have syslog on windows

PATCH In review Paolo Bonzini 2 participants 2 messages Jan 14 Rust

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rust: trace: libc does not have syslog on windows

---
This is not enough for the msys2-64bit job to pass, but it reaches linking.

 rust/trace/src/lib.rs | 2 ++
 1 file changed, 2 insertions(+)
rust/trace/src/lib.rs +2 -0
index c2abe430a52..143513891ac 100644
@@ -3,9 +3,11 @@
 //! 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};
+
 #[doc(hidden)]
 /// Re-exported item to avoid adding probe as a dependency everywhere.
 pub use probe::probe;
Signature · 1 line
2.52.0
Reviewed-by on v1 1/1
#1 lore raw

Hi

Quoted 3 lines · Paolo Bonzini
Quoted 3 lines

---
This is not enough for the msys2-64bit job to pass, but it reaches linking.

same here :)

Quoted 24 lines
 rust/trace/src/lib.rs | 2 ++
 1 file changed, 2 insertions(+)
rust/trace/src/lib.rs +2 -1
index c2abe430a52..143513891ac 100644
@@ -3,9 +3,11 @@
 //! 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};
+
 #[doc(hidden)]
 /// Re-exported item to avoid adding probe as a dependency everywhere.
 pub use probe::probe;
--

2.52.0

Signature · 1 line
Marc-André Lureau