diff options
author | gnzlbg <gonzalobg88@gmail.com> | 2018-11-22 17:48:32 +0100 |
---|---|---|
committer | gnzlbg <gonzalobg88@gmail.com> | 2018-11-22 17:48:32 +0100 |
commit | a5bfa1a044da919347c0c82555f10e3d67cf9f6e (patch) | |
tree | 91f02152e329623e7320b725282a0c1dc30330c7 | |
parent | 1eeba38558f5f83cd62901923f4bea8eea90bf82 (diff) | |
download | rust-libc-a5bfa1a044da919347c0c82555f10e3d67cf9f6e.tar.gz |
Add alias for MAP_ANONYMOUS to Apple targets.
Closes #1060 .
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 38f211eb05..2dc3245a96 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -772,6 +772,7 @@ pub const MAP_SHARED: ::c_int = 0x0001; pub const MAP_PRIVATE: ::c_int = 0x0002; pub const MAP_FIXED: ::c_int = 0x0010; pub const MAP_ANON: ::c_int = 0x1000; +pub const MAP_ANONYMOUS: ::c_int = MAP_ANON; pub const VM_FLAGS_FIXED: ::c_int = 0x0000; pub const VM_FLAGS_ANYWHERE: ::c_int = 0x0001; |