Skip to content

Commit

Permalink
Targeting 'env = gnu' instead of 'not musl'
Browse files Browse the repository at this point in the history
  • Loading branch information
tombardier committed Jul 5, 2021
1 parent 83c3e6b commit 9658481
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/fcntl.rs
Expand Up @@ -212,7 +212,7 @@ pub fn renameat<P1: ?Sized + NixPath, P2: ?Sized + NixPath>(

#[cfg(all(
target_os = "linux",
not(target_env = "musl"),
target_env = "gnu",
any(
target_arch = "x86_64",
target_arch = "x32",
Expand Down
8 changes: 4 additions & 4 deletions test/test_fcntl.rs
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 9658481

Please sign in to comment.