diff options
| author | Richo Healey <richo@psych0tik.net> | 2015-01-09 20:27:46 -0800 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2015-01-11 21:14:31 -0800 |
| commit | d48fa78694a4403837a9e0b5df3f1f6c0abf1e84 (patch) | |
| tree | 394114d74a7aa7c51f61552e1b6b9910e0105246 /src/libstd/sys/unix/c.rs | |
| parent | 164981042d6afd38c6635ab10ef8ed3c0daffe8b (diff) | |
| download | rust-d48fa78694a4403837a9e0b5df3f1f6c0abf1e84.tar.gz rust-d48fa78694a4403837a9e0b5df3f1f6c0abf1e84.zip | |
powerpc: add cdefs for linux
This borrowed entirely from the mips definitions, and should be revisited after it lands while testing.
Diffstat (limited to 'src/libstd/sys/unix/c.rs')
| -rw-r--r-- | src/libstd/sys/unix/c.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/libstd/sys/unix/c.rs b/src/libstd/sys/unix/c.rs index 1d523ed6edd..fed700cc9d5 100644 --- a/src/libstd/sys/unix/c.rs +++ b/src/libstd/sys/unix/c.rs @@ -33,7 +33,9 @@ pub const FIONBIO: libc::c_ulong = 0x8004667e; target_os = "android"))] pub const FIONBIO: libc::c_ulong = 0x5421; #[cfg(all(target_os = "linux", - any(target_arch = "mips", target_arch = "mipsel")))] + any(target_arch = "mips", + target_arch = "mipsel", + target_arch = "powerpc")))] pub const FIONBIO: libc::c_ulong = 0x667e; #[cfg(any(target_os = "macos", @@ -49,7 +51,9 @@ pub const FIOCLEX: libc::c_ulong = 0x20006601; target_os = "android"))] pub const FIOCLEX: libc::c_ulong = 0x5451; #[cfg(all(target_os = "linux", - any(target_arch = "mips", target_arch = "mipsel")))] + any(target_arch = "mips", + target_arch = "mipsel", + target_arch = "powerpc")))] pub const FIOCLEX: libc::c_ulong = 0x6601; #[cfg(any(target_os = "macos", @@ -182,7 +186,9 @@ mod signal { } #[cfg(all(target_os = "linux", - any(target_arch = "mips", target_arch = "mipsel")))] + any(target_arch = "mips", + target_arch = "mipsel", + target_arch = "powerpc")))] mod signal { use libc; |
