diff --git a/src/util_libc.rs b/src/util_libc.rs index 65207fc6..0f4c0e97 100644 --- a/src/util_libc.rs +++ b/src/util_libc.rs @@ -139,7 +139,7 @@ impl Weak { } cfg_if! { - if #[cfg(any(target_os = "linux", target_os = "emscripten"))] { + if #[cfg(any(all(target_os = "linux", not(target_env = "musl")), target_os = "emscripten"))] { use libc::open64 as open; } else { use libc::open;