summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--src/sys/mman.rs8
-rw-r--r--src/unistd.rs2
3 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md
index 5c900a44..0bd2df53 100644
--- a/README.md
+++ b/README.md
@@ -74,6 +74,7 @@ Tier 2:
* s390x-unknown-linux-gnu
* x86_64-apple-ios
* x86_64-linux-android
+ * x86_64-unknown-illumos
* x86_64-unknown-netbsd
Tier 3:
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,
}
}