Skip to content

Commit 41ee874

Browse files
committed
Disabled socketpair for Vita
1 parent 7e0261e commit 41ee874

File tree

1 file changed

+2
-2
lines changed
  • library/std/src/sys/unix

1 file changed

+2
-2
lines changed

library/std/src/sys/unix/net.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl Socket {
102102
}
103103
}
104104

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

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

0 commit comments

Comments
 (0)