From 0ac6fc7dc7fa945f7256847f177d868c2ccf2b09 Mon Sep 17 00:00:00 2001 From: Linus Gasser Date: Fri, 8 Sep 2023 19:23:46 +0200 Subject: [PATCH] Adding musl target env --- veilid-core/src/intf/native/network_interfaces/netlink.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/veilid-core/src/intf/native/network_interfaces/netlink.rs b/veilid-core/src/intf/native/network_interfaces/netlink.rs index 3c757637..e1f0c750 100644 --- a/veilid-core/src/intf/native/network_interfaces/netlink.rs +++ b/veilid-core/src/intf/native/network_interfaces/netlink.rs @@ -122,7 +122,7 @@ impl PlatformSupportNetlink { } cfg_if! { - if #[cfg(target_os = "android")] { + if #[cfg(any(target_os = "android", target_env = "musl"))] { let res = unsafe { ioctl(sock, SIOCGIFFLAGS as i32, &mut req) }; } else { let res = unsafe { ioctl(sock, SIOCGIFFLAGS, &mut req) };