diff --git a/src/features.rs b/src/features.rs index 38eb3ea051..ed80fd714b 100644 --- a/src/features.rs +++ b/src/features.rs @@ -94,7 +94,14 @@ mod os { } } -#[cfg(any(target_os = "illumos"))] +#[cfg(any( + target_os = "dragonfly", // Since ??? + target_os = "freebsd", // Since 10.0 + target_os = "illumos", // Since ??? + target_os = "netbsd", // Since 6.0 + target_os = "openbsd", // Since 5.7 + target_os = "redox", // Since 1-july-2020 +))] mod os { /// Check if the OS supports atomic close-on-exec for sockets pub const fn socket_atomic_cloexec() -> bool { @@ -102,10 +109,9 @@ mod os { } } -#[cfg(any(target_os = "macos", target_os = "freebsd", - target_os = "dragonfly", target_os = "ios", - target_os = "openbsd", target_os = "netbsd", - target_os = "redox", target_os = "fuchsia", +#[cfg(any(target_os = "macos", + target_os = "ios", + target_os = "fuchsia", target_os = "solaris"))] mod os { /// Check if the OS supports atomic close-on-exec for sockets diff --git a/src/sys/mman.rs b/src/sys/mman.rs index bcbe27e255..882a2b944a 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -210,7 +210,8 @@ libc_enum!{ all(target_os = "linux", any( target_arch = "aarch64", target_arch = "arm", - target_arch = "ppc", + target_arch = "powerpc", + target_arch = "powerpc64", target_arch = "s390x", target_arch = "x86", target_arch = "x86_64",