File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 11use std:: fs;
2+ #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
23use std:: os:: unix:: io:: RawFd ;
34use std:: sync:: OnceLock ;
45
@@ -39,7 +40,9 @@ struct CheckSafemodeCmd {
3940}
4041
4142// Global driver fd cache
43+ #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
4244static DRIVER_FD : OnceLock < RawFd > = OnceLock :: new ( ) ;
45+ #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
4346static INFO_CACHE : OnceLock < GetInfoCmd > = OnceLock :: new ( ) ;
4447
4548const KSU_INSTALL_MAGIC1 : u32 = 0xDEADBEEF ;
Original file line number Diff line number Diff line change 11use std:: fs;
2+ #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
23use std:: os:: unix:: io:: RawFd ;
34use std:: sync:: OnceLock ;
45
@@ -39,7 +40,9 @@ struct CheckSafemodeCmd {
3940}
4041
4142// Global driver fd cache
43+ #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
4244static DRIVER_FD : OnceLock < RawFd > = OnceLock :: new ( ) ;
45+ #[ cfg( any( target_os = "linux" , target_os = "android" ) ) ]
4346static INFO_CACHE : OnceLock < GetInfoCmd > = OnceLock :: new ( ) ;
4447
4548const KSU_INSTALL_MAGIC1 : u32 = 0xDEADBEEF ;
You can’t perform that action at this time.
0 commit comments