@@ -386,7 +386,8 @@ pub mod types {
386
386
target_arch = "mips" ,
387
387
target_arch = "mipsel" ,
388
388
target_arch = "powerpc" ,
389
- target_arch = "le32" ) ) ]
389
+ target_arch = "le32" ,
390
+ all( target_arch = "arm" , not( target_os = "android" ) ) ) ) ]
390
391
pub mod posix88 {
391
392
pub type off_t = i32 ;
392
393
pub type dev_t = u64 ;
@@ -398,7 +399,7 @@ pub mod types {
398
399
pub type mode_t = u32 ;
399
400
pub type ssize_t = i32 ;
400
401
}
401
- #[ cfg( target_arch = "arm" ) ]
402
+ #[ cfg( all ( target_arch = "arm" , target_os = "android" ) ) ]
402
403
pub mod posix88 {
403
404
pub type off_t = i32 ;
404
405
pub type dev_t = u32 ;
@@ -412,7 +413,8 @@ pub mod types {
412
413
}
413
414
#[ cfg( any( target_arch = "x86" ,
414
415
target_arch = "le32" ,
415
- target_arch = "powerpc" ) ) ]
416
+ target_arch = "powerpc" ,
417
+ all( target_arch = "arm" , not( target_os = "android" ) ) ) ) ]
416
418
pub mod posix01 {
417
419
use types:: os:: arch:: c95:: { c_short, c_long, time_t} ;
418
420
use types:: os:: arch:: posix88:: { dev_t, gid_t, ino_t} ;
@@ -458,7 +460,7 @@ pub mod types {
458
460
pub __size : [ u32 ; 9 ]
459
461
}
460
462
}
461
- #[ cfg( target_arch = "arm" ) ]
463
+ #[ cfg( all ( target_arch = "arm" , target_os = "android" ) ) ]
462
464
pub mod posix01 {
463
465
use types:: os:: arch:: c95:: { c_uchar, c_uint, c_ulong, time_t} ;
464
466
use types:: os:: arch:: c99:: { c_longlong, c_ulonglong} ;
0 commit comments