Expose ucred::peer_cred on QNX targets to enable dist builds
This commit is contained in:
parent
d31b6fb8c0
commit
d82d4196ac
2 changed files with 6 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue