diff options
author | Greg V <greg@unrelenting.technology> | 2019-12-29 23:07:05 +0000 |
---|---|---|
committer | Greg V <greg@unrelenting.technology> | 2020-07-06 15:31:37 +0300 |
commit | e9a75ddd76522bf7e56f282bf64976e0c9e8eb10 (patch) | |
tree | 87994ff403a0219f541f6549d18a4ce24993734e /src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs | |
parent | 8c23f77704d4749f5f137c92a048e22fea9d385e (diff) | |
download | rust-libc-e9a75ddd76522bf7e56f282bf64976e0c9e8eb10.tar.gz |
FreeBSD: use stat header in freebsd11/freebsd12 on aarch64
sys/stat.h is a machine-independent header, but it has ifdefs for i386.
The version that was called x86_64.rs should be used on powerpc64 too,
but I don't have a machine to test that on.
Diffstat (limited to 'src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs')
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs b/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs index 6bf7f957e6..e0dd712bbd 100644 --- a/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs @@ -217,8 +217,9 @@ extern "C" { } cfg_if! { - if #[cfg(target_arch = "x86_64")] { - mod x86_64; - pub use self::x86_64::*; + if #[cfg(any(target_arch = "x86_64", + target_arch = "aarch64"))] { + mod b64; + pub use self::b64::*; } } |