Skip to content

Commit 960199d

Browse files
committed
Try enabling LocalPeerPid for ios
1 parent 34788b1 commit 960199d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sys/socket/sockopt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ sockopt_impl!(
492492
libc::LOCAL_PEERCRED,
493493
super::XuCred
494494
);
495-
#[cfg(any(target_os = "macos"))]
495+
#[cfg(any(target_os = "macos", target_os = "ios"))]
496496
sockopt_impl!(
497497
/// Get the PID of the peer process of a connected unix domain socket.
498498
LocalPeerPid,

test/sys/test_sockopt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn test_local_peercred_stream() {
5454
assert_eq!(Gid::from_raw(xucred.groups()[0]), Gid::current());
5555
}
5656

57-
#[cfg(target_os = "macos")]
57+
#[cfg(any(target_os = "ios", target_os = "macos"))]
5858
#[test]
5959
pub fn test_local_peer_pid() {
6060
use nix::sys::socket::socketpair;

0 commit comments

Comments
 (0)