Make openbsdlike to support 64 and 32 bits archs

This commit is contained in:
Sébastien Marie 2016-11-28 12:05:13 +01:00
parent e324291aa4
commit 00648e11c7
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
}
}