Merge pull request #459 from semarie/openbsd-i686

Make openbsdlike to support 64 and 32 bits archs
This commit is contained in:
Alex Crichton 2016-11-29 14:02:23 -07:00 committed by GitHub
commit 94848c1907
4 changed files with 18 additions and 2 deletions

View File

@ -1,5 +1,3 @@
pub type c_long = i64;
pub type c_ulong = u64;
pub type clock_t = i64;
pub type suseconds_t = i64;
pub type dev_t = i32;
@ -448,3 +446,6 @@ cfg_if! {
// Unknown target_os
}
}
mod other;
pub use self::other::*;

View File

@ -0,0 +1,2 @@
pub type c_long = i32;
pub type c_ulong = u32;

View File

@ -0,0 +1,2 @@
pub type c_long = i64;
pub type c_ulong = u64;

View File

@ -0,0 +1,11 @@
cfg_if! {
if #[cfg(target_arch = "x86_64")] {
mod b64;
pub use self::b64::*;
} else if #[cfg(target_arch = "x86")] {
mod b32;
pub use self::b32::*;
} else {
// Unknown target_arch
}
}