about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2013-07-08 10:34:24 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2013-07-08 10:36:43 +0400
commit6e67701ca862a4a8f79e713d2e52559f11824c19 (patch)
tree5000ce03409d261d8c66bf3c17f18c4aca5e2b6f /src/libstd
parente07ae9e6f9196096697935b96667ec272b039ad9 (diff)
downloadrust-6e67701ca862a4a8f79e713d2e52559f11824c19.tar.gz
rust-6e67701ca862a4a8f79e713d2e52559f11824c19.zip
libc: fix MAP_ANON value on linux
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/libc.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/libc.rs b/src/libstd/libc.rs
index 14e719bc8dd..6d083f94892 100644
--- a/src/libstd/libc.rs
+++ b/src/libstd/libc.rs
@@ -1107,7 +1107,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 = 0x1000;
+            pub static MAP_ANON : c_int = 0x0020;
 
             pub static MAP_FAILED : *c_void = -1 as *c_void;
 
@@ -1175,7 +1175,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 = 0x1000;
+            pub static MAP_ANON : c_int = 0x0020;
 
             pub static MAP_FAILED : *c_void = -1 as *c_void;
 
@@ -1326,7 +1326,7 @@ pub mod consts {
             pub static PROT_GROWSUP : c_int = 0x020000000;
 
             pub static MAP_TYPE : c_int = 0x000f;
-            pub static MAP_ANONONYMOUS : c_int = 0x1000;
+            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;
@@ -1349,7 +1349,7 @@ pub mod consts {
             pub static PROT_GROWSUP : c_int = 0x020000000;
 
             pub static MAP_TYPE : c_int = 0x000f;
-            pub static MAP_ANONONYMOUS : c_int = 0x1000;
+            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;