Skip to content

Commit

Permalink
libc: fix MAP_ANON value on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Jul 8, 2013
1 parent e07ae9e commit 6e67701
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libstd/libc.rs
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 6e67701

Please sign in to comment.