summaryrefslogtreecommitdiff
path: root/src/sys/mman.rs
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2021-08-27 01:46:50 -0500
committerRyan Zoeller <rtzoeller@rtzoeller.com>2021-08-27 01:46:50 -0500
commit8366b92ca7feaf0347092582e7dafa54962509df (patch)
tree319ac06f5dfe4ae9fe9079b75072ec71de0d13c4 /src/sys/mman.rs
parentfc7687dad8feb467b04897bbf40730c56e5d3f1b (diff)
downloadnix-8366b92ca7feaf0347092582e7dafa54962509df.zip
Fix compilation warnings
Diffstat (limited to 'src/sys/mman.rs')
-rw-r--r--src/sys/mman.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sys/mman.rs b/src/sys/mman.rs
index a8d6d7c9..33ac21de 100644
--- a/src/sys/mman.rs
+++ b/src/sys/mman.rs
@@ -65,8 +65,8 @@ libc_bitflags!{
MAP_LOCKED;
/// Do not reserve swap space for this mapping.
///
- /// This was removed in FreeBSD 11.
- #[cfg(not(target_os = "freebsd"))]
+ /// This was removed in FreeBSD 11 and is unused in DragonFlyBSD.
+ #[cfg(not(any(target_os = "dragonfly", target_os = "freebsd")))]
MAP_NORESERVE;
/// Populate page tables for a mapping.
#[cfg(any(target_os = "android", target_os = "linux"))]
@@ -122,8 +122,8 @@ libc_bitflags!{
MAP_NOSYNC;
/// Rename private pages to a file.
///
- /// This was removed in FreeBSD 11.
- #[cfg(any(target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd"))]
+ /// This was removed in FreeBSD 11 and is unused in DragonFlyBSD.
+ #[cfg(any(target_os = "netbsd", target_os = "openbsd"))]
MAP_RENAME;
/// Region may contain semaphores.
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))]