From 0949d6adbc7c3c7cb97fcc0ebc42c53ca7299288 Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Wed, 11 Feb 2026 23:28:31 -0800 Subject: [PATCH] if_nameindex: add android target --- src/net/if_.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/net/if_.rs b/src/net/if_.rs index 1e2085c338..76d71de884 100644 --- a/src/net/if_.rs +++ b/src/net/if_.rs @@ -42,7 +42,7 @@ pub fn if_indextoname(index: c_uint) -> Result { libc_bitflags!( /// Standard interface flags, used by `getifaddrs` pub struct InterfaceFlags: IflagsType { - + /// Interface is running. (see /// [`netdevice(7)`](https://man7.org/linux/man-pages/man7/netdevice.7.html)) IFF_UP as IflagsType; @@ -271,6 +271,7 @@ impl fmt::Display for InterfaceFlags { bsd, target_os = "fuchsia", target_os = "linux", + target_os = "android", solarish, ))] mod if_nameindex { @@ -398,6 +399,7 @@ mod if_nameindex { bsd, target_os = "fuchsia", target_os = "linux", + target_os = "android", solarish, ))] pub use if_nameindex::*;