diff options
| author | Richo Healey <richo@psych0tik.net> | 2015-01-09 21:38:14 -0800 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2015-01-11 21:15:06 -0800 |
| commit | 7776820a032d60256c7dea3e95113045d026ddbd (patch) | |
| tree | 74b77ec76730c17dfc68c862fba329e1e9f4d82e /src/liblibc | |
| parent | 8341ee4075e46d4f5470c6081be4135cdffd21ed (diff) | |
| download | rust-7776820a032d60256c7dea3e95113045d026ddbd.tar.gz rust-7776820a032d60256c7dea3e95113045d026ddbd.zip | |
powerpc: definition support for libc
Diffstat (limited to 'src/liblibc')
| -rw-r--r-- | src/liblibc/lib.rs | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index c866deafee4..deab0cabfbe 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -497,7 +497,8 @@ pub mod types { #[cfg(any(target_arch = "x86", target_arch = "arm", target_arch = "mips", - target_arch = "mipsel"))] + target_arch = "mipsel", + target_arch = "powerpc"))] pub mod arch { pub mod c95 { pub type c_char = i8; @@ -528,7 +529,8 @@ pub mod types { } #[cfg(any(target_arch = "x86", target_arch = "mips", - target_arch = "mipsel"))] + target_arch = "mipsel", + target_arch = "powerpc"))] pub mod posix88 { pub type off_t = i32; pub type dev_t = u64; @@ -642,7 +644,9 @@ pub mod types { pub __size: [u32; 9] } } - #[cfg(any(target_arch = "mips", target_arch = "mipsel"))] + #[cfg(any(target_arch = "mips", + target_arch = "mipsel", + target_arch = "powerpc"))] pub mod posix01 { use types::os::arch::c95::{c_long, c_ulong, time_t}; use types::os::arch::posix88::{gid_t, ino_t}; @@ -2697,7 +2701,9 @@ pub mod consts { pub const EHWPOISON: c_int = 133; } - #[cfg(any(target_arch = "mips", target_arch = "mipsel"))] + #[cfg(any(target_arch = "mips", + target_arch = "mipsel", + target_arch = "powerpc"))] pub mod posix88 { use types::os::arch::c95::c_int; use types::common::c95::c_void; @@ -2982,7 +2988,8 @@ pub mod consts { #[cfg(all(target_os = "linux", any(target_arch = "mips", target_arch = "mipsel", - target_arch = "aarch64")))] + target_arch = "aarch64", + target_arch = "powerpc")))] pub const PTHREAD_STACK_MIN: size_t = 131072; pub const CLOCK_REALTIME: c_int = 0; @@ -3040,7 +3047,9 @@ pub mod consts { pub const SHUT_WR: c_int = 1; pub const SHUT_RDWR: c_int = 2; } - #[cfg(any(target_arch = "mips", target_arch = "mipsel"))] + #[cfg(any(target_arch = "mips", + target_arch = "mipsel", + target_arch = "powerpc"))] pub mod bsd44 { use types::os::arch::c95::c_int; @@ -3115,7 +3124,9 @@ pub mod consts { pub const MAP_NONBLOCK : c_int = 0x010000; pub const MAP_STACK : c_int = 0x020000; } - #[cfg(any(target_arch = "mips", target_arch = "mipsel"))] + #[cfg(any(target_arch = "mips", + target_arch = "mipsel", + target_arch = "powerpc"))] pub mod extra { use types::os::arch::c95::c_int; |
