X-Git-Url: https://code.octet-stream.net/netwatcher/blobdiff_plain/cc3e849e9ff8568609f160d4bcdb83966ffdb6c5..5dd5aea6e6c70688ad4288df1eaafd97ac05720a:/src/lib.rs diff --git a/src/lib.rs b/src/lib.rs index 47c5ae1..e7bf152 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,14 +5,15 @@ 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")] +#[cfg_attr(target_os = "linux", path = "watch_linux.rs")] mod watch; -#[cfg(target_vendor = "apple")] +#[cfg(unix)] mod util; type IfIndex = u32;