diff options
| author | Jyun-Yan You <jyyou@cs.nctu.edu.tw> | 2014-03-13 14:35:24 +0800 |
|---|---|---|
| committer | Jyun-Yan You <jyyou@cs.nctu.edu.tw> | 2014-03-14 11:13:36 +0800 |
| commit | 6d7e86d099cf33821398731f750b36df564ca5d2 (patch) | |
| tree | 4cf087332b5466b6fcc10edf8027cf04add6c166 /src/libstd/libc.rs | |
| parent | b4d324334cb48198c27d782002d75eba14a6abde (diff) | |
fix MIPS target
I ignored AtomicU64 methods on MIPS target because libgcc doesn't implement MIPS32 64-bit atomic operations. Otherwise it would cause link failure.
Diffstat (limited to 'src/libstd/libc.rs')
| -rw-r--r-- | src/libstd/libc.rs | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/libstd/libc.rs b/src/libstd/libc.rs index c602c2fc27f..dd7f8379e7b 100644 --- a/src/libstd/libc.rs +++ b/src/libstd/libc.rs @@ -2133,7 +2133,7 @@ pub mod consts { pub static MAP_SHARED : c_int = 0x0001; pub static MAP_PRIVATE : c_int = 0x0002; pub static MAP_FIXED : c_int = 0x0010; - pub static MAP_ANON : c_int = 0x0020; + pub static MAP_ANON : c_int = 0x0800; pub static MAP_FAILED : *c_void = -1 as *c_void; @@ -2425,20 +2425,19 @@ pub mod consts { pub static O_DSYNC : c_int = 16; pub static O_SYNC : c_int = 16400; - pub static PROT_GROWSDOWN : c_int = 0x010000000; - pub static PROT_GROWSUP : c_int = 0x020000000; + pub static PROT_GROWSDOWN : c_int = 0x01000000; + pub static PROT_GROWSUP : c_int = 0x02000000; pub static MAP_TYPE : c_int = 0x000f; - pub static MAP_ANONONYMOUS : c_int = 0x0020; - pub static MAP_32BIT : c_int = 0x0040; - pub static MAP_GROWSDOWN : c_int = 0x0100; - pub static MAP_DENYWRITE : c_int = 0x0800; - pub static MAP_EXECUTABLE : c_int = 0x01000; - pub static MAP_LOCKED : c_int = 0x02000; - pub static MAP_NONRESERVE : c_int = 0x04000; - pub static MAP_POPULATE : c_int = 0x08000; - pub static MAP_NONBLOCK : c_int = 0x010000; - pub static MAP_STACK : c_int = 0x020000; + pub static MAP_ANONONYMOUS : c_int = 0x0800; + pub static MAP_GROWSDOWN : c_int = 0x01000; + pub static MAP_DENYWRITE : c_int = 0x02000; + pub static MAP_EXECUTABLE : c_int = 0x04000; + pub static MAP_LOCKED : c_int = 0x08000; + pub static MAP_NONRESERVE : c_int = 0x0400; + pub static MAP_POPULATE : c_int = 0x010000; + pub static MAP_NONBLOCK : c_int = 0x020000; + pub static MAP_STACK : c_int = 0x040000; } #[cfg(target_os = "linux")] pub mod sysconf { |
