Skip to content

Commit

Permalink
Disabled socketpair for Vita
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh committed Sep 13, 2023
1 parent 7e0261e commit 41ee874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/sys/unix/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl Socket {
}
}

#[cfg(not(target_os = "vxworks"))]
#[cfg(not(any(target_os = "vxworks", target_os = "vita")))]
pub fn new_pair(fam: c_int, ty: c_int) -> io::Result<(Socket, Socket)> {
unsafe {
let mut fds = [0, 0];
Expand Down Expand Up @@ -133,7 +133,7 @@ impl Socket {
}
}

#[cfg(target_os = "vxworks")]
#[cfg(any(target_os = "vxworks", target_os = "vita"))]
pub fn new_pair(_fam: c_int, _ty: c_int) -> io::Result<(Socket, Socket)> {
unimplemented!()
}
Expand Down

0 comments on commit 41ee874

Please sign in to comment.