We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34788b1 commit 960199dCopy full SHA for 960199d
src/sys/socket/sockopt.rs
@@ -492,7 +492,7 @@ sockopt_impl!(
492
libc::LOCAL_PEERCRED,
493
super::XuCred
494
);
495
-#[cfg(any(target_os = "macos"))]
+#[cfg(any(target_os = "macos", target_os = "ios"))]
496
sockopt_impl!(
497
/// Get the PID of the peer process of a connected unix domain socket.
498
LocalPeerPid,
test/sys/test_sockopt.rs
@@ -54,7 +54,7 @@ pub fn test_local_peercred_stream() {
54
assert_eq!(Gid::from_raw(xucred.groups()[0]), Gid::current());
55
}
56
57
-#[cfg(target_os = "macos")]
+#[cfg(any(target_os = "ios", target_os = "macos"))]
58
#[test]
59
pub fn test_local_peer_pid() {
60
use nix::sys::socket::socketpair;
0 commit comments