Adding musl target env

This commit is contained in:
Linus Gasser 2023-09-08 19:23:46 +02:00
parent aa490d5e65
commit 0ac6fc7dc7

View File

@ -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) };