@@ -97,14 +97,14 @@ impl BorrowedFd<'_> {
97
97
// We want to atomically duplicate this file descriptor and set the
98
98
// CLOEXEC flag, and currently that's done via F_DUPFD_CLOEXEC. This
99
99
// is a POSIX flag that was added to Linux in 2.6.24.
100
- #[ cfg( not( target_os = "espidf" ) ) ]
100
+ #[ cfg( not( any ( target_os = "espidf" , target_os = "vita" ) ) ) ]
101
101
let cmd = libc:: F_DUPFD_CLOEXEC ;
102
102
103
103
// For ESP-IDF, F_DUPFD is used instead, because the CLOEXEC semantics
104
104
// will never be supported, as this is a bare metal framework with
105
105
// no capabilities for multi-process execution. While F_DUPFD is also
106
106
// not supported yet, it might be (currently it returns ENOSYS).
107
- #[ cfg( target_os = "espidf" ) ]
107
+ #[ cfg( any ( target_os = "espidf" , target_os = "vita" ) ) ]
108
108
let cmd = libc:: F_DUPFD ;
109
109
110
110
// Avoid using file descriptors below 3 as they are used for stdio
@@ -119,7 +119,7 @@ impl BorrowedFd<'_> {
119
119
pub fn try_clone_to_owned ( & self ) -> crate :: io:: Result < OwnedFd > {
120
120
Err ( crate :: io:: const_io_error!(
121
121
crate :: io:: ErrorKind :: Unsupported ,
122
- "operation not supported on WASI yet " ,
122
+ "operation not supported on this platform " ,
123
123
) )
124
124
}
125
125
}
0 commit comments