File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use std::process::exit;
1111use tracing:: Level ;
1212
1313fn check_tun_name ( _v : String ) -> Result < ( ) , String > {
14- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
14+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1515 {
1616 if boringtun:: device:: tun:: parse_utun_name ( & _v) . is_ok ( ) {
1717 Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ pub mod drop_privileges;
99mod integration_tests;
1010pub mod peer;
1111
12- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
12+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
1313#[ path = "kqueue.rs" ]
1414pub mod poll;
1515
1616#[ cfg( target_os = "linux" ) ]
1717#[ path = "epoll.rs" ]
1818pub mod poll;
1919
20- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
20+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
2121#[ path = "tun_darwin.rs" ]
2222pub mod tun;
2323
@@ -75,7 +75,7 @@ pub enum Error {
7575 SetSockOpt ( String ) ,
7676 #[ error( "Invalid tunnel name" ) ]
7777 InvalidTunnelName ,
78- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
78+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
7979 #[ error( "{0}" ) ]
8080 GetSockOpt ( io:: Error ) ,
8181 #[ error( "{0}" ) ]
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ use std::time::Duration;
33use nix:: sys:: time:: TimeSpec ;
44use nix:: time:: { clock_gettime, ClockId } ;
55
6- #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
6+ #[ cfg( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ]
77const CLOCK_ID : ClockId = ClockId :: CLOCK_MONOTONIC ;
8- #[ cfg( not( any( target_os = "macos" , target_os = "ios" ) ) ) ]
8+ #[ cfg( not( any( target_os = "macos" , target_os = "ios" , target_os = "tvos" ) ) ) ]
99const CLOCK_ID : ClockId = ClockId :: CLOCK_BOOTTIME ;
1010
1111#[ derive( Clone , Copy , Debug ) ]
You can’t perform that action at this time.
0 commit comments