about summary refs log tree commit diff
path: root/src/liblibc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-06-24 13:46:54 +0000
committerbors <bors@rust-lang.org>2014-06-24 13:46:54 +0000
commit82ec1aef293ddc5c6373bd7f5ec323fafbdf7901 (patch)
tree52730fbfa9ef29c85dd537fbd13829275e180504 /src/liblibc
parent71fe44def9676d519f5ce5d7304e581a42cf2c70 (diff)
parent34a384a128d9630679f9c90bb27eaa0822e5b798 (diff)
downloadrust-82ec1aef293ddc5c6373bd7f5ec323fafbdf7901.tar.gz
rust-82ec1aef293ddc5c6373bd7f5ec323fafbdf7901.zip
auto merge of #14963 : w3ln4/rust/master, r=alexcrichton
The aim of these changes is not working out a generic bi-endianness architectures support but to allow people develop for little endian MIPS machines (issue #7190).
Diffstat (limited to 'src/liblibc')
-rw-r--r--src/liblibc/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs
index 2a464d82fd9..0d4f9ad19c6 100644
--- a/src/liblibc/lib.rs
+++ b/src/liblibc/lib.rs
@@ -463,6 +463,7 @@ pub mod types {
         #[cfg(target_arch = "x86")]
         #[cfg(target_arch = "arm")]
         #[cfg(target_arch = "mips")]
+        #[cfg(target_arch = "mipsel")]
         pub mod arch {
             pub mod c95 {
                 pub type c_char = i8;
@@ -491,6 +492,7 @@ pub mod types {
             }
             #[cfg(target_arch = "x86")]
             #[cfg(target_arch = "mips")]
+            #[cfg(target_arch = "mipsel")]
             pub mod posix88 {
                 pub type off_t = i32;
                 pub type dev_t = u64;
@@ -599,6 +601,7 @@ pub mod types {
                 }
             }
             #[cfg(target_arch = "mips")]
+            #[cfg(target_arch = "mipsel")]
             pub mod posix01 {
                 use types::os::arch::c95::{c_long, c_ulong, time_t};
                 use types::os::arch::posix88::{gid_t, ino_t};
@@ -2209,6 +2212,7 @@ pub mod consts {
         }
 
         #[cfg(target_arch = "mips")]
+        #[cfg(target_arch = "mipsel")]
         pub mod posix88 {
             use types::os::arch::c95::c_int;
             use types::common::c95::c_void;
@@ -2483,6 +2487,7 @@ pub mod consts {
             pub static PTHREAD_STACK_MIN: size_t = 16384;
 
             #[cfg(target_arch = "mips", target_os = "linux")]
+            #[cfg(target_arch = "mipsel", target_os = "linux")]
             pub static PTHREAD_STACK_MIN: size_t = 131072;
 
             pub static CLOCK_REALTIME: c_int = 0;
@@ -2536,6 +2541,7 @@ pub mod consts {
             pub static SHUT_RDWR: c_int = 2;
         }
         #[cfg(target_arch = "mips")]
+        #[cfg(target_arch = "mipsel")]
         pub mod bsd44 {
             use types::os::arch::c95::c_int;
 
@@ -2604,6 +2610,7 @@ pub mod consts {
             pub static MAP_STACK : c_int = 0x020000;
         }
         #[cfg(target_arch = "mips")]
+        #[cfg(target_arch = "mipsel")]
         pub mod extra {
             use types::os::arch::c95::c_int;
 
@@ -2976,6 +2983,7 @@ pub mod consts {
             pub static PTHREAD_STACK_MIN: size_t = 4096;
 
             #[cfg(target_arch = "mips")]
+            #[cfg(target_arch = "mipsel")]
             #[cfg(target_arch = "x86")]
             #[cfg(target_arch = "x86_64")]
             pub static PTHREAD_STACK_MIN: size_t = 2048;