From 96584817c41904c9166aa2b6bd51f23b6ce4f1ef Mon Sep 17 00:00:00 2001 From: Tom Boland Date: Mon, 5 Jul 2021 17:22:13 +0100 Subject: [PATCH] Targeting 'env = gnu' instead of 'not musl' --- src/fcntl.rs | 2 +- test/test_fcntl.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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",