musl: Add architecture specific modules for 64 bit

This commit is contained in:
Kamal Marhubi 2016-03-10 14:47:03 -05:00
parent 04213bbac5
commit f934724bba
4 changed files with 15 additions and 1 deletions

View File

@ -325,4 +325,17 @@ pub const TIOCMSET: ::c_ulong = 0x5418;
pub const FIONREAD: ::c_ulong = 0x541B;
pub const TIOCCONS: ::c_ulong = 0x541D;
pub const SYS_gettid: ::c_long = 186; // Valid for x86_64
cfg_if! {
if #[cfg(target_arch = "aarch64")] {
mod aarch64;
pub use self::aarch64::*;
} else if #[cfg(any(target_arch = "powerpc64"))] {
mod powerpc64;
pub use self::powerpc64::*;
} else if #[cfg(any(target_arch = "x86_64"))] {
mod x86_64;
pub use self::x86_64::*;
} else {
// Unknown target_arch
}
}

View File

@ -0,0 +1 @@
pub const SYS_gettid: ::c_long = 186;