Skip to content

Commit 94848c1

Browse files
authored
Merge pull request rust-lang#459 from semarie/openbsd-i686
Make openbsdlike to support 64 and 32 bits archs
2 parents e324291 + 00648e1 commit 94848c1

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
pub type c_long = i64;
2-
pub type c_ulong = u64;
31
pub type clock_t = i64;
42
pub type suseconds_t = i64;
53
pub type dev_t = i32;
@@ -448,3 +446,6 @@ cfg_if! {
448446
// Unknown target_os
449447
}
450448
}
449+
450+
mod other;
451+
pub use self::other::*;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pub type c_long = i32;
2+
pub type c_ulong = u32;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pub type c_long = i64;
2+
pub type c_ulong = u64;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
cfg_if! {
2+
if #[cfg(target_arch = "x86_64")] {
3+
mod b64;
4+
pub use self::b64::*;
5+
} else if #[cfg(target_arch = "x86")] {
6+
mod b32;
7+
pub use self::b32::*;
8+
} else {
9+
// Unknown target_arch
10+
}
11+
}

0 commit comments

Comments
 (0)