about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikolay Arhipov <n@arhipov.net>2023-09-13 16:40:33 +0300
committerNikolay Arhipov <n@arhipov.net>2023-09-13 16:41:38 +0300
commit41ee874fa9dad0765da5681092fec25247c1f64d (patch)
tree47915c51d242c64e96b766ff7ab62add41e0cf1c
parent7e0261e7ea2085bdc0bc3d0fd6776bf343473858 (diff)
downloadrust-41ee874fa9dad0765da5681092fec25247c1f64d.tar.gz
rust-41ee874fa9dad0765da5681092fec25247c1f64d.zip
Disabled socketpair for Vita
-rw-r--r--library/std/src/sys/unix/net.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/net.rs b/library/std/src/sys/unix/net.rs
index ade8c75a657..48f163b6db0 100644
--- a/library/std/src/sys/unix/net.rs
+++ b/library/std/src/sys/unix/net.rs
@@ -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];
@@ -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!()
     }