Expose ucred::peer_cred on QNX targets to enable dist builds

This commit is contained in:
Ana Hobden 2024-03-19 06:54:07 -07:00
parent d31b6fb8c0
commit d82d4196ac
No known key found for this signature in database
2 changed files with 6 additions and 3 deletions

View file

@ -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)

View file

@ -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;