]> code.octet-stream.net Git - netwatcher/blobdiff - src/lib.rs
Fix Android compile
[netwatcher] / src / lib.rs
index cb3a1176640e2dd57389f230ca696e1c4ed1e4e1..08a0a36b2d48b8593bd90adc331f759d6af3ef8d 100644 (file)
@@ -10,7 +10,7 @@ mod list;
 
 #[cfg_attr(windows, path = "watch_win.rs")]
 #[cfg_attr(target_vendor = "apple", path = "watch_mac.rs")]
 
 #[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")]
+#[cfg_attr(any(target_os = "linux", target_os = "android"), path = "watch_linux.rs")]
 mod watch;
 
 type IfIndex = u32;
 mod watch;
 
 type IfIndex = u32;