Skip to content

Commit 8366b92

Browse files
committed
Fix compilation warnings
1 parent fc7687d commit 8366b92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sys/mman.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ libc_bitflags!{
6565
MAP_LOCKED;
6666
/// Do not reserve swap space for this mapping.
6767
///
68-
/// This was removed in FreeBSD 11.
69-
#[cfg(not(target_os = "freebsd"))]
68+
/// This was removed in FreeBSD 11 and is unused in DragonFlyBSD.
69+
#[cfg(not(any(target_os = "dragonfly", target_os = "freebsd")))]
7070
MAP_NORESERVE;
7171
/// Populate page tables for a mapping.
7272
#[cfg(any(target_os = "android", target_os = "linux"))]
@@ -122,8 +122,8 @@ libc_bitflags!{
122122
MAP_NOSYNC;
123123
/// Rename private pages to a file.
124124
///
125-
/// This was removed in FreeBSD 11.
126-
#[cfg(any(target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd"))]
125+
/// This was removed in FreeBSD 11 and is unused in DragonFlyBSD.
126+
#[cfg(any(target_os = "netbsd", target_os = "openbsd"))]
127127
MAP_RENAME;
128128
/// Region may contain semaphores.
129129
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))]

0 commit comments

Comments
 (0)