Skip to content

Commit

Permalink
Enabling renameat2 for any GNU/Linux target, but Disabling the tests …
Browse files Browse the repository at this point in the history
…for any cross-compile targets, as per comment here: nix-rust#1458 (comment)
  • Loading branch information
tombardier committed Jul 5, 2021
1 parent 9658481 commit 7a0bc0b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/fcntl.rs
Expand Up @@ -213,12 +213,6 @@ pub fn renameat<P1: ?Sized + NixPath, P2: ?Sized + NixPath>(
#[cfg(all(
target_os = "linux",
target_env = "gnu",
any(
target_arch = "x86_64",
target_arch = "x32",
target_arch = "powerpc",
target_arch = "s390x"
)
))]
libc_bitflags! {
pub struct RenameFlags: u32 {
Expand All @@ -231,12 +225,6 @@ libc_bitflags! {
#[cfg(all(
target_os = "linux",
target_env = "gnu",
any(
target_arch = "x86_64",
target_arch = "x32",
target_arch = "powerpc",
target_arch = "s390x"
)
))]
pub fn renameat2<P1: ?Sized + NixPath, P2: ?Sized + NixPath>(
old_dirfd: Option<RawFd>,
Expand Down

0 comments on commit 7a0bc0b

Please sign in to comment.