Skip to content

Commit b43f986

Browse files
committed
Auto merge of #1139 - gnzlbg:map_anon, r=gnzlbg
Add alias for MAP_ANONYMOUS to Apple targets. Closes #1060 .
2 parents 1eeba38 + a5bfa1a commit b43f986

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ pub const MAP_SHARED: ::c_int = 0x0001;
772772
pub const MAP_PRIVATE: ::c_int = 0x0002;
773773
pub const MAP_FIXED: ::c_int = 0x0010;
774774
pub const MAP_ANON: ::c_int = 0x1000;
775+
pub const MAP_ANONYMOUS: ::c_int = MAP_ANON;
775776

776777
pub const VM_FLAGS_FIXED: ::c_int = 0x0000;
777778
pub const VM_FLAGS_ANYWHERE: ::c_int = 0x0001;

0 commit comments

Comments
 (0)