Skip to content

Commit a5bfa1a

Browse files
committed
Add alias for MAP_ANONYMOUS to Apple targets.
Closes #1060 .
1 parent 1eeba38 commit a5bfa1a

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)