From 5800dd3e5ebf1dd8b359653495779b7a724b93cb Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 6 Aug 2024 03:36:16 +0900 Subject: [PATCH] Set nosigpipe on NetBSD and DragonFly BSD --- Cargo.toml | 2 +- src/lib.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 28f92db..3c20d49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ futures-io = { version = "0.3.28", default-features = false, features = ["std"] futures-lite = { version = "2.0.0", default-features = false } parking = "2.0.0" polling = "3.0.0" -rustix = { version = "0.38.2", default-features = false, features = ["fs", "net", "std"] } +rustix = { version = "0.38.18", default-features = false, features = ["fs", "net", "std"] } slab = "0.4.2" tracing = { version = "0.1.37", default-features = false } diff --git a/src/lib.rs b/src/lib.rs index 97847e3..15f388d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2145,7 +2145,9 @@ fn connect( target_os = "ios", target_os = "tvos", target_os = "watchos", - target_os = "freebsd" + target_os = "freebsd", + target_os = "netbsd", + target_os = "dragonfly", ))] rn::sockopt::set_socket_nosigpipe(&socket, true)?;