Procházet zdrojové kódy

Do not export phy::wait on non-Unix platforms

Michal Podhradsky před 7 roky
rodič
revize
a3bd4a9000
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/phy/mod.rs

+ 2 - 2
src/phy/mod.rs

@@ -87,7 +87,7 @@ impl<'a> phy::TxToken for StmPhyTxToken<'a> {
 use Result;
 use time::Instant;
 
-#[cfg(any(feature = "phy-raw_socket", feature = "phy-tap_interface"))]
+#[cfg(all(any(feature = "phy-raw_socket", feature = "phy-tap_interface"), unix))]
 mod sys;
 
 mod tracer;
@@ -100,7 +100,7 @@ mod raw_socket;
 #[cfg(all(feature = "phy-tap_interface", target_os = "linux"))]
 mod tap_interface;
 
-#[cfg(any(feature = "phy-raw_socket", feature = "phy-tap_interface"))]
+#[cfg(all(any(feature = "phy-raw_socket", feature = "phy-tap_interface"), unix))]
 pub use self::sys::wait;
 
 pub use self::tracer::Tracer;