diff options
| author | Pawel Olzacki <p.olzacki2@samsung.com> | 2014-06-17 09:16:03 +0200 |
|---|---|---|
| committer | Pawel Olzacki <p.olzacki2@samsung.com> | 2014-06-24 11:12:10 +0200 |
| commit | 34a384a128d9630679f9c90bb27eaa0822e5b798 (patch) | |
| tree | dbb53a9b17693edf5a735020d48af6aeaa277722 /src/libnative | |
| parent | 7ec78053ec5fcabd5f8ca98627dd45bfa5fc4cd4 (diff) | |
| download | rust-34a384a128d9630679f9c90bb27eaa0822e5b798.tar.gz rust-34a384a128d9630679f9c90bb27eaa0822e5b798.zip | |
Added Mipsel architecture support
Diffstat (limited to 'src/libnative')
| -rw-r--r-- | src/libnative/io/c_unix.rs | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/libnative/io/c_unix.rs b/src/libnative/io/c_unix.rs index 70fd6310070..7a52c048498 100644 --- a/src/libnative/io/c_unix.rs +++ b/src/libnative/io/c_unix.rs @@ -23,20 +23,26 @@ use libc; #[cfg(target_os = "ios")] #[cfg(target_os = "freebsd")] pub static FIONBIO: libc::c_ulong = 0x8004667e; -#[cfg(target_os = "linux", not(target_arch = "mips"))] +#[cfg(target_os = "linux", target_arch = "x86")] +#[cfg(target_os = "linux", target_arch = "x86_64")] +#[cfg(target_os = "linux", target_arch = "arm")] #[cfg(target_os = "android")] pub static FIONBIO: libc::c_ulong = 0x5421; #[cfg(target_os = "linux", target_arch = "mips")] +#[cfg(target_os = "linux", target_arch = "mipsel")] pub static FIONBIO: libc::c_ulong = 0x667e; #[cfg(target_os = "macos")] #[cfg(target_os = "ios")] #[cfg(target_os = "freebsd")] pub static FIOCLEX: libc::c_ulong = 0x20006601; -#[cfg(target_os = "linux", not(target_arch = "mips"))] +#[cfg(target_os = "linux", target_arch = "x86")] +#[cfg(target_os = "linux", target_arch = "x86_64")] +#[cfg(target_os = "linux", target_arch = "arm")] #[cfg(target_os = "android")] pub static FIOCLEX: libc::c_ulong = 0x5451; #[cfg(target_os = "linux", target_arch = "mips")] +#[cfg(target_os = "linux", target_arch = "mipsel")] pub static FIOCLEX: libc::c_ulong = 0x6601; #[cfg(target_os = "macos")] @@ -109,7 +115,9 @@ mod select { } } -#[cfg(target_os = "linux", not(target_arch = "mips"))] +#[cfg(target_os = "linux", target_arch = "x86")] +#[cfg(target_os = "linux", target_arch = "x86_64")] +#[cfg(target_os = "linux", target_arch = "arm")] #[cfg(target_os = "android")] mod signal { use libc; @@ -153,6 +161,7 @@ mod signal { } #[cfg(target_os = "linux", target_arch = "mips")] +#[cfg(target_os = "linux", target_arch = "mipsel")] mod signal { use libc; |
