Skip to content

Commit 0478c60

Browse files
committed
NetBSD: add basic types for aarch64
1 parent 27114a9 commit 0478c60

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub type c_long = i64;
2+
pub type c_ulong = u64;
3+
pub type c_char = u8;

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,10 @@ extern {
11101110
}
11111111

11121112
cfg_if! {
1113-
if #[cfg(target_arch = "arm")] {
1113+
if #[cfg(target_arch = "aarch64")] {
1114+
mod aarch64;
1115+
pub use self::aarch64::*;
1116+
} else if #[cfg(target_arch = "arm")] {
11141117
mod arm;
11151118
pub use self::arm::*;
11161119
} else if #[cfg(target_arch = "powerpc")] {

0 commit comments

Comments
 (0)