Skip to content

Commit 1a45839

Browse files
committed
openbsd: add sparc64 support
1 parent 3311ba8 commit 1a45839

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,6 +1438,9 @@ cfg_if! {
14381438
} else if #[cfg(target_arch = "aarch64")] {
14391439
mod aarch64;
14401440
pub use self::aarch64::*;
1441+
} else if #[cfg(target_arch = "sparc64")] {
1442+
mod sparc64;
1443+
pub use self::sparc64::*;
14411444
} else {
14421445
// Unknown target_arch
14431446
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
pub type c_long = i64;
2+
pub type c_ulong = u64;
3+
pub type c_char = i8;
4+
5+
#[doc(hidden)]
6+
pub const _ALIGNBYTES: usize = 0xf;
7+
8+
pub const _MAX_PAGE_SHIFT: u32 = 13;

0 commit comments

Comments
 (0)