diff options
author | Jason King <jason.brian.king@gmail.com> | 2020-06-17 01:11:05 +0000 |
---|---|---|
committer | Jason King <jason.brian.king@gmail.com> | 2021-03-21 23:04:03 +0000 |
commit | d444f1bcf20b29d0ec69e30046c71d005a2b9d72 (patch) | |
tree | 09c410385c727ac6f9e9bfae71077901f5edfb6d /src/features.rs | |
parent | 7b3129a194ecbf3e5f99f30ff26ab0e6fa7f183d (diff) | |
download | nix-d444f1bcf20b29d0ec69e30046c71d005a2b9d72.zip |
illumos and Solaris support
Co-authored-by: Dominik Hassler <hadfl@omnios.org>
Co-authored-by: Joshua M. Clulow <josh@sysmgr.org>
Diffstat (limited to 'src/features.rs')
-rw-r--r-- | src/features.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/features.rs b/src/features.rs index 6b1cff5d..bcda45d4 100644 --- a/src/features.rs +++ b/src/features.rs @@ -94,10 +94,19 @@ mod os { } } +#[cfg(any(target_os = "illumos"))] +mod os { + /// Check if the OS supports atomic close-on-exec for sockets + pub fn socket_atomic_cloexec() -> bool { + true + } +} + #[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"))] + target_os = "redox", target_os = "fuchsia", + target_os = "solaris"))] mod os { /// Check if the OS supports atomic close-on-exec for sockets pub fn socket_atomic_cloexec() -> bool { |