]> code.octet-stream.net Git - netwatcher/commitdiff
Add watch target for Android
authorThomas Karpiniec <tom.karpiniec@outlook.com>
Tue, 18 Jun 2024 10:41:41 +0000 (20:41 +1000)
committerThomas Karpiniec <tom.karpiniec@outlook.com>
Tue, 18 Jun 2024 10:41:41 +0000 (20:41 +1000)
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(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;