@@ -25,7 +25,7 @@ cfg_if::cfg_if! {
2525 }
2626}
2727cfg_if:: cfg_if! {
28- if #[ cfg( all( unix, not( target_os = "ios" ) , not( target_os = "android" ) ) ) ] {
28+ if #[ cfg( all( unix, not( target_os = "ios" ) , not( target_os = "android" ) , not ( target_os = "freebsd" ) ) ) ] {
2929 mod remote_pty;
3030 use remote_pty:: start_remote_pty_master;
3131 }
@@ -70,9 +70,9 @@ impl ShellClient {
7070 term : self . host_shell . term ( ) . unwrap_or ( "" . to_owned ( ) ) ,
7171 color : self . host_shell . color ( ) . unwrap_or ( false ) ,
7272 size : WindowSize :: from ( self . host_shell . size ( ) . await ?) ,
73- #[ cfg( all( unix, not( target_os = "ios" ) , not( target_os = "android" ) ) ) ]
73+ #[ cfg( all( unix, not( target_os = "ios" ) , not( target_os = "android" ) , not ( target_os = "freebsd" ) ) ) ]
7474 remote_pty_support : true ,
75- #[ cfg( not( all( unix, not( target_os = "ios" ) , not( target_os = "android" ) ) ) ) ]
75+ #[ cfg( not( all( unix, not( target_os = "ios" ) , not( target_os = "android" ) , not ( target_os = "freebsd" ) ) ) ) ]
7676 remote_pty_support : false ,
7777 // we invert the peer config because the remote will have the inverse view of the network
7878 network_peer_config : self . network_peer_config . invert ( ) ,
@@ -93,7 +93,7 @@ impl ShellClient {
9393
9494 let exit_code = if let ShellStartedPayload :: RemotePty = response {
9595 cfg_if:: cfg_if! {
96- if #[ cfg( not( all( unix, not( target_os = "ios" ) , not( target_os = "android" ) ) ) ) ] {
96+ if #[ cfg( not( all( unix, not( target_os = "ios" ) , not( target_os = "android" ) , not ( target_os = "freebsd" ) ) ) ) ] {
9797 return Err ( Error :: msg( "shell server started remote pty when not supported on local" ) ) ;
9898 } else {
9999 info!( "starting remote pty master" ) ;
0 commit comments