diff --git a/src/fcntl.rs b/src/fcntl.rs index 0d841bd981..187e3c5ffc 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -212,7 +212,7 @@ pub fn renameat( #[cfg(all( target_os = "linux", - not(target_env = "musl"), + target_env = "gnu", any( target_arch = "x86_64", target_arch = "x32", diff --git a/test/test_fcntl.rs b/test/test_fcntl.rs index d47ef9650e..ede107b32a 100644 --- a/test/test_fcntl.rs +++ b/test/test_fcntl.rs @@ -8,7 +8,7 @@ use nix::fcntl::{open, OFlag, readlink}; use nix::fcntl::{openat, readlinkat, renameat}; #[cfg(all( target_os = "linux", - not(target_env = "musl"), + target_env = "gnu", any( target_arch = "x86_64", target_arch = "x32", @@ -75,7 +75,7 @@ fn test_renameat() { #[test] #[cfg(all( target_os = "linux", - not(target_env = "musl"), + target_env = "gnu", any( target_arch = "x86_64", target_arch = "x32", @@ -117,7 +117,7 @@ fn test_renameat2_behaves_like_renameat_with_no_flags() { #[test] #[cfg(all( target_os = "linux", - not(target_env = "musl"), + target_env = "gnu", any( target_arch = "x86_64", target_arch = "x32", @@ -163,7 +163,7 @@ fn test_renameat2_exchange() { #[test] #[cfg(all( target_os = "linux", - not(target_env = "musl"), + target_env = "gnu", any( target_arch = "x86_64", target_arch = "x32",