File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1445,13 +1445,20 @@ fn stat64_to_stat(s64: c::stat64) -> io::Result<Stat> {
1445
1445
mod sys {
1446
1446
use super :: { c, BorrowedFd , Statx } ;
1447
1447
1448
+ // Some versions of the libc bindings don't have these, so provide
1449
+ // our own definitions (which may become unused when libc gains
1450
+ // bindings for them).
1448
1451
#[ cfg( all( target_os = "android" , target_arch = "arm" ) ) ]
1452
+ #[ allow( dead_code) ]
1449
1453
const SYS_statx : c:: c_long = 397 ;
1450
1454
#[ cfg( all( target_os = "android" , target_arch = "x86" ) ) ]
1455
+ #[ allow( dead_code) ]
1451
1456
const SYS_statx : c:: c_long = 383 ;
1452
1457
#[ cfg( all( target_os = "android" , target_arch = "aarch64" ) ) ]
1458
+ #[ allow( dead_code) ]
1453
1459
const SYS_statx : c:: c_long = 291 ;
1454
1460
#[ cfg( all( target_os = "android" , target_arch = "x86_64" ) ) ]
1461
+ #[ allow( dead_code) ]
1455
1462
const SYS_statx : c:: c_long = 332 ;
1456
1463
1457
1464
weak_or_syscall ! {
You can’t perform that action at this time.
0 commit comments