about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAna Hobden <operator@hoverbear.org>2024-03-19 06:54:07 -0700
committerAna Hobden <operator@hoverbear.org>2024-03-19 07:34:27 -0700
commitd82d4196ac2e313330a4095dc5c4b0aede4b265a (patch)
tree8fa39f9271f592a1b5aae4cdf4e7ecbe59d00e78
parentd31b6fb8c06b43536ac5be38462d2a55784e2199 (diff)
downloadrust-d82d4196ac2e313330a4095dc5c4b0aede4b265a.tar.gz
rust-d82d4196ac2e313330a4095dc5c4b0aede4b265a.zip
Expose ucred::peer_cred on QNX targets to enable dist builds
-rw-r--r--library/std/src/os/unix/net/stream.rs6
-rw-r--r--library/std/src/os/unix/net/ucred.rs3
2 files changed, 6 insertions, 3 deletions
diff --git a/library/std/src/os/unix/net/stream.rs b/library/std/src/os/unix/net/stream.rs
index d2e23bdee6c..d67493aaf4d 100644
--- a/library/std/src/os/unix/net/stream.rs
+++ b/library/std/src/os/unix/net/stream.rs
@@ -8,7 +8,8 @@
     target_os = "macos",
     target_os = "watchos",
     target_os = "netbsd",
-    target_os = "openbsd"
+    target_os = "openbsd",
+    target_os = "nto"
 ))]
 use super::{peer_cred, UCred};
 #[cfg(any(doc, target_os = "android", target_os = "linux"))]
@@ -234,7 +235,8 @@ impl UnixStream {
         target_os = "macos",
         target_os = "watchos",
         target_os = "netbsd",
-        target_os = "openbsd"
+        target_os = "openbsd",
+        target_os = "nto"
     ))]
     pub fn peer_cred(&self) -> io::Result<UCred> {
         peer_cred(self)
diff --git a/library/std/src/os/unix/net/ucred.rs b/library/std/src/os/unix/net/ucred.rs
index de09c93840a..4c915c57906 100644
--- a/library/std/src/os/unix/net/ucred.rs
+++ b/library/std/src/os/unix/net/ucred.rs
@@ -30,7 +30,8 @@ pub(super) use self::impl_linux::peer_cred;
     target_os = "dragonfly",
     target_os = "freebsd",
     target_os = "openbsd",
-    target_os = "netbsd"
+    target_os = "netbsd",
+    target_os = "nto"
 ))]
 pub(super) use self::impl_bsd::peer_cred;