From 22dac2339a6c151693b6e4e38b3a9b28a3f51921 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 14 Sep 2024 18:46:06 +0100 Subject: [PATCH] std::net: Solaris supports `SOCK_CLOEXEC` as well since 11.4. --- library/std/src/sys/pal/unix/net.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/std/src/sys/pal/unix/net.rs b/library/std/src/sys/pal/unix/net.rs index d75a666d350ff..74347792abe79 100644 --- a/library/std/src/sys/pal/unix/net.rs +++ b/library/std/src/sys/pal/unix/net.rs @@ -81,6 +81,7 @@ impl Socket { target_os = "netbsd", target_os = "openbsd", target_os = "nto", + target_os = "solaris", ))] { // On platforms that support it we pass the SOCK_CLOEXEC // flag to atomically create the socket and set it as