From a5bfa1a044da919347c0c82555f10e3d67cf9f6e Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Thu, 22 Nov 2018 17:48:32 +0100 Subject: Add alias for MAP_ANONYMOUS to Apple targets. Closes #1060 . --- src/unix/bsd/apple/mod.rs | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.1