From 0478c6059b559665ee276a350b494facaa705054 Mon Sep 17 00:00:00 2001 From: "Jonathan A. Kollasch" Date: Mon, 6 Aug 2018 14:59:35 -0500 Subject: NetBSD: add basic types for aarch64 --- src/unix/bsd/netbsdlike/netbsd/aarch64.rs | 3 +++ src/unix/bsd/netbsdlike/netbsd/mod.rs | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/unix/bsd/netbsdlike/netbsd/aarch64.rs diff --git a/src/unix/bsd/netbsdlike/netbsd/aarch64.rs b/src/unix/bsd/netbsdlike/netbsd/aarch64.rs new file mode 100644 index 0000000000..6aa9950ed1 --- /dev/null +++ b/src/unix/bsd/netbsdlike/netbsd/aarch64.rs @@ -0,0 +1,3 @@ +pub type c_long = i64; +pub type c_ulong = u64; +pub type c_char = u8; diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index b0cf20f65e..917593ee63 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -1110,7 +1110,10 @@ extern { } cfg_if! { - if #[cfg(target_arch = "arm")] { + if #[cfg(target_arch = "aarch64")] { + mod aarch64; + pub use self::aarch64::*; + } else if #[cfg(target_arch = "arm")] { mod arm; pub use self::arm::*; } else if #[cfg(target_arch = "powerpc")] { -- cgit v1.2.1