diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-09-19 14:33:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-19 14:33:09 +0000 |
commit | 1c0bc5c2f5157270843898f89120c21a43f04c22 (patch) | |
tree | b3419444b69fe2aa3b80b37d6549e2fd3be175a3 /src | |
parent | 515e99bcffcf324d03128649f3ee0ca14d67b5b1 (diff) | |
parent | b463e014d837236f22d3c8b967e0f25801d294bd (diff) | |
download | nix-1c0bc5c2f5157270843898f89120c21a43f04c22.zip |
Merge #1522
1522: mman mod adding MAP_ALIGNED_SUPER flag for freebsd. r=asomers a=devnexen
Co-authored-by: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/mman.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/mman.rs b/src/sys/mman.rs index 0ea7edaf..30d53881 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -140,6 +140,9 @@ libc_bitflags!{ MAP_NOCACHE; #[cfg(any(target_os = "ios", target_os = "macos"))] MAP_JIT; + /// Allows to use large pages, underlying alignment based on size. + #[cfg(target_os = "freesd")] + MAP_ALIGNED_SUPER; } } |