File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -939,7 +939,7 @@ impl FromInner<c_int> for File {
939939
940940impl fmt:: Debug for File {
941941 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
942- #[ cfg( target_os = "linux" ) ]
942+ #[ cfg( any ( target_os = "linux" , target_os = "netbsd" ) ) ]
943943 fn get_path ( fd : c_int ) -> Option < PathBuf > {
944944 let mut p = PathBuf :: from ( "/proc/self/fd" ) ;
945945 p. push ( & fd. to_string ( ) ) ;
@@ -976,7 +976,12 @@ impl fmt::Debug for File {
976976 Some ( PathBuf :: from ( OsString :: from_vec ( buf) ) )
977977 }
978978
979- #[ cfg( not( any( target_os = "linux" , target_os = "macos" , target_os = "vxworks" ) ) ) ]
979+ #[ cfg( not( any(
980+ target_os = "linux" ,
981+ target_os = "macos" ,
982+ target_os = "vxworks" ,
983+ target_os = "netbsd"
984+ ) ) ) ]
980985 fn get_path ( _fd : c_int ) -> Option < PathBuf > {
981986 // FIXME(#24570): implement this for other Unix platforms
982987 None
You can’t perform that action at this time.
0 commit comments