]> code.octet-stream.net Git - netwatcher/blobdiff - src/lib.rs
Don't include "down" interfaces on Windows
[netwatcher] / src / lib.rs
index 47c5ae11957466f7e233e0f2690105d431fad154..46218d2ceec0469263dd2ca48e61d90402b8af43 100644 (file)
@@ -5,14 +5,14 @@ use std::{
 };
 
 #[cfg_attr(windows, path = "list_win.rs")]
-#[cfg_attr(target_vendor = "apple", path = "list_mac.rs")]
+#[cfg_attr(unix, path = "list_unix.rs")]
 mod list;
 
 #[cfg_attr(windows, path = "watch_win.rs")]
 #[cfg_attr(target_vendor = "apple", path = "watch_mac.rs")]
 mod watch;
 
-#[cfg(target_vendor = "apple")]
+#[cfg(unix)]
 mod util;
 
 type IfIndex = u32;