File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1198,7 +1198,12 @@ impl FromRawFd for File {
1198
1198
1199
1199
impl fmt:: Debug for File {
1200
1200
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1201
- #[ cfg( any( target_os = "linux" , target_os = "netbsd" ) ) ]
1201
+ #[ cfg( any(
1202
+ target_os = "linux" ,
1203
+ target_os = "netbsd" ,
1204
+ target_os = "illumos" ,
1205
+ target_os = "solaris"
1206
+ ) ) ]
1202
1207
fn get_path ( fd : c_int ) -> Option < PathBuf > {
1203
1208
let mut p = PathBuf :: from ( "/proc/self/fd" ) ;
1204
1209
p. push ( & fd. to_string ( ) ) ;
@@ -1253,7 +1258,9 @@ impl fmt::Debug for File {
1253
1258
target_os = "macos" ,
1254
1259
target_os = "vxworks" ,
1255
1260
all( target_os = "freebsd" , target_arch = "x86_64" ) ,
1256
- target_os = "netbsd"
1261
+ target_os = "netbsd" ,
1262
+ target_os = "illumos" ,
1263
+ target_os = "solaris"
1257
1264
) ) ) ]
1258
1265
fn get_path ( _fd : c_int ) -> Option < PathBuf > {
1259
1266
// FIXME(#24570): implement this for other Unix platforms
You can’t perform that action at this time.
0 commit comments