summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bors.toml2
-rw-r--r--src/sys/mman.rs8
-rw-r--r--src/unistd.rs2
3 files changed, 6 insertions, 6 deletions
diff --git a/bors.toml b/bors.toml
index 1e2ad980..92e6a857 100644
--- a/bors.toml
+++ b/bors.toml
@@ -30,7 +30,7 @@ status = [
"Rust Stable",
"iOS aarch64",
"iOS x86_64",
- "illumos",
+ "Illumos",
]
# Set bors's timeout to 1 hour
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"))]
diff --git a/src/unistd.rs b/src/unistd.rs
index e42f83a5..25b20051 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -2742,7 +2742,7 @@ impl From<User> for libc::passwd {
pw_age: CString::new("").unwrap().into_raw(),
#[cfg(target_os = "illumos")]
pw_comment: CString::new("").unwrap().into_raw(),
- #[cfg(target_os = "freebsd")]
+ #[cfg(any(target_os = "dragonfly", target_os = "freebsd"))]
pw_fields: 0,
}
}