Skip to content

Commit 1e803f2

Browse files
committed
Expose ucred::peer_cred on QNX targets to enable dist builds
1 parent 5091bd7 commit 1e803f2

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

std/src/os/unix/net/stream.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
target_os = "macos",
99
target_os = "watchos",
1010
target_os = "netbsd",
11-
target_os = "openbsd"
11+
target_os = "openbsd",
12+
target_os = "nto"
1213
))]
1314
use super::{peer_cred, UCred};
1415
#[cfg(any(doc, target_os = "android", target_os = "linux"))]
@@ -234,7 +235,8 @@ impl UnixStream {
234235
target_os = "macos",
235236
target_os = "watchos",
236237
target_os = "netbsd",
237-
target_os = "openbsd"
238+
target_os = "openbsd",
239+
target_os = "nto"
238240
))]
239241
pub fn peer_cred(&self) -> io::Result<UCred> {
240242
peer_cred(self)

std/src/os/unix/net/ucred.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ pub(super) use self::impl_linux::peer_cred;
3030
target_os = "dragonfly",
3131
target_os = "freebsd",
3232
target_os = "openbsd",
33-
target_os = "netbsd"
33+
target_os = "netbsd",
34+
target_os = "nto"
3435
))]
3536
pub(super) use self::impl_bsd::peer_cred;
3637

0 commit comments

Comments
 (0)