summaryrefslogtreecommitdiff
path: root/src/features.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/features.rs')
-rw-r--r--src/features.rs11
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 {