diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2016-08-27 01:39:29 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2016-08-27 01:40:29 -0500 |
| commit | 43615a03f31d3c60c4af13a1fe17bd4cf3edad06 (patch) | |
| tree | 2d8225825df1f12d2bd59bb87d4b5cbbcdd871fe /src/libstd | |
| parent | 1b9e9ab1dc523c4778a2510e4f9e2d470fe7a4a3 (diff) | |
| download | rust-43615a03f31d3c60c4af13a1fe17bd4cf3edad06.tar.gz rust-43615a03f31d3c60c4af13a1fe17bd4cf3edad06.zip | |
fix cross compilation of std
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/env.rs | 6 | ||||
| -rw-r--r-- | src/libstd/os/linux/raw.rs | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs index 753411991ab..0380965ed20 100644 --- a/src/libstd/env.rs +++ b/src/libstd/env.rs @@ -661,6 +661,7 @@ pub mod consts { /// - arm /// - aarch64 /// - mips + /// - mips64 /// - powerpc /// - powerpc64 #[stable(feature = "env", since = "1.0.0")] @@ -928,6 +929,11 @@ mod arch { pub const ARCH: &'static str = "mips"; } +#[cfg(target_arch = "mips64")] +mod arch { + pub const ARCH: &'static str = "mips64"; +} + #[cfg(target_arch = "powerpc")] mod arch { pub const ARCH: &'static str = "powerpc"; diff --git a/src/libstd/os/linux/raw.rs b/src/libstd/os/linux/raw.rs index 1be76961fea..0f62877500b 100644 --- a/src/libstd/os/linux/raw.rs +++ b/src/libstd/os/linux/raw.rs @@ -155,6 +155,11 @@ mod arch { } } +#[cfg(target_arch = "mips64")] +mod arch { + pub use libc::{off_t, ino_t, nlink_t, blksize_t, blkcnt_t, stat, time_t}; +} + #[cfg(target_arch = "aarch64")] mod arch { use os::raw::{c_long, c_int}; |
