Disabled socketpair for Vita

This commit is contained in:
Nikolay Arhipov 2023-09-13 16:40:33 +03:00
parent 7e0261e7ea
commit 41ee874fa9

View File

@ -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)> { pub fn new_pair(fam: c_int, ty: c_int) -> io::Result<(Socket, Socket)> {
unsafe { unsafe {
let mut fds = [0, 0]; let mut fds = [0, 0];
@ -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)> { pub fn new_pair(_fam: c_int, _ty: c_int) -> io::Result<(Socket, Socket)> {
unimplemented!() unimplemented!()
} }