]> code.octet-stream.net Git - netwatcher/blobdiff - src/lib.rs
Fix up deps for Linux
[netwatcher] / src / lib.rs
index 47c5ae11957466f7e233e0f2690105d431fad154..e7bf15234aaaf92a217e90a7d56c57598fdf93b5 100644 (file)
@@ -5,14 +5,15 @@ use std::{
 };
 
 #[cfg_attr(windows, path = "list_win.rs")]
 };
 
 #[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 list;
 
 #[cfg_attr(windows, path = "watch_win.rs")]
 #[cfg_attr(target_vendor = "apple", path = "watch_mac.rs")]
+#[cfg_attr(target_os = "linux", path = "watch_linux.rs")]
 mod watch;
 
 mod watch;
 
-#[cfg(target_vendor = "apple")]
+#[cfg(unix)]
 mod util;
 
 type IfIndex = u32;
 mod util;
 
 type IfIndex = u32;