Skip to content

Commit 0949d6a

Browse files
committed
if_nameindex: add android target
1 parent dad24fb commit 0949d6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/net/if_.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub fn if_indextoname(index: c_uint) -> Result<CString> {
4242
libc_bitflags!(
4343
/// Standard interface flags, used by `getifaddrs`
4444
pub struct InterfaceFlags: IflagsType {
45-
45+
4646
/// Interface is running. (see
4747
/// [`netdevice(7)`](https://man7.org/linux/man-pages/man7/netdevice.7.html))
4848
IFF_UP as IflagsType;
@@ -271,6 +271,7 @@ impl fmt::Display for InterfaceFlags {
271271
bsd,
272272
target_os = "fuchsia",
273273
target_os = "linux",
274+
target_os = "android",
274275
solarish,
275276
))]
276277
mod if_nameindex {
@@ -398,6 +399,7 @@ mod if_nameindex {
398399
bsd,
399400
target_os = "fuchsia",
400401
target_os = "linux",
402+
target_os = "android",
401403
solarish,
402404
))]
403405
pub use if_nameindex::*;

0 commit comments

Comments
 (0)