From c0f8832020874f3f3aab9499ebe93dc2e58ee6c5 Mon Sep 17 00:00:00 2001 From: Maerten Farya Date: Fri, 4 Sep 2026 12:58:07 +0200 Subject: [PATCH] fix: add support for QNX8 --- Cargo.toml | 2 +- src/sys/unix.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index f95929e7..3f1b6ad1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -50,7 +50,7 @@ targets = [ features = ["all"] [target.'cfg(any(unix, target_os = "wasi"))'.dependencies] -libc = "0.2.189" +libc = "0.2.190" [target.'cfg(windows)'.dependencies.windows-sys] version = ">=0.60, <0.62" diff --git a/src/sys/unix.rs b/src/sys/unix.rs index 65e494bc..ccb149f9 100644 --- a/src/sys/unix.rs +++ b/src/sys/unix.rs @@ -271,6 +271,7 @@ pub(crate) use libc::{ target_os = "macos", target_os = "netbsd", target_os = "nto", + target_os = "qnx", target_os = "openbsd", target_os = "solaris", target_os = "tvos", @@ -289,6 +290,7 @@ pub(crate) use libc::{IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP}; target_os = "macos", target_os = "netbsd", target_os = "openbsd", + target_os = "qnx", target_os = "solaris", target_os = "tvos", target_os = "watchos", @@ -427,6 +429,7 @@ type IovLen = usize; target_os = "macos", target_os = "netbsd", target_os = "nto", + target_os = "qnx", target_os = "openbsd", target_os = "solaris", target_os = "tvos", @@ -1297,6 +1300,7 @@ pub(crate) fn set_tcp_keepalive(fd: RawSocket, keepalive: &TcpKeepalive) -> io:: target_os = "ios", target_os = "visionos", target_os = "linux", + target_os = "qnx", target_os = "macos", target_os = "netbsd", target_os = "tvos",