@@ -466,18 +466,19 @@ pub mod types {
466466 pub type off_t = i32 ;
467467 pub type dev_t = u32 ;
468468 pub type ino_t = u32 ;
469+
469470 pub type pid_t = i32 ;
470471 pub type uid_t = u32 ;
471472 pub type gid_t = u32 ;
472473 pub type useconds_t = u32 ;
474+
473475 pub type mode_t = u16 ;
474476 pub type ssize_t = i32 ;
475477 }
476- #[ cfg( any( target_arch = "x86" ,
478+ #[ cfg( any( all( any( target_arch = "arm" , target_arch = "x86" ) ,
479+ not( target_os = "android" ) ) ,
477480 target_arch = "le32" ,
478- target_arch = "powerpc" ,
479- all( any( target_arch = "arm" , target_arch = "x86" ) ,
480- not( target_os = "android" ) ) ) ) ]
481+ target_arch = "powerpc" ) ) ]
481482 pub mod posix01 {
482483 use types:: os:: arch:: c95:: { c_short, c_long, time_t} ;
483484 use types:: os:: arch:: posix88:: { dev_t, gid_t, ino_t} ;
@@ -523,12 +524,13 @@ pub mod types {
523524 pub __size : [ u32 ; 9 ]
524525 }
525526 }
527+
526528 #[ cfg( all( any( target_arch = "arm" , target_arch = "x86" ) ,
527- target_os = "android" ) ) ]
529+ target_os = "android" ) ) ]
528530 pub mod posix01 {
529- use types:: os:: arch:: c95:: { c_uchar, c_uint, c_ulong, time_t} ;
531+ use types:: os:: arch:: c95:: { c_uchar, c_uint, c_ulong, c_long , time_t} ;
530532 use types:: os:: arch:: c99:: { c_longlong, c_ulonglong} ;
531- use types:: os:: arch:: posix88:: { uid_t, gid_t, ino_t } ;
533+ use types:: os:: arch:: posix88:: { uid_t, gid_t} ;
532534
533535 pub type nlink_t = u16 ;
534536 pub type blksize_t = u32 ;
@@ -538,15 +540,15 @@ pub mod types {
538540 #[ derive( Copy , Clone ) ] pub struct stat {
539541 pub st_dev : c_ulonglong ,
540542 pub __pad0 : [ c_uchar ; 4 ] ,
541- pub __st_ino : ino_t ,
543+ pub __st_ino : c_long ,
542544 pub st_mode : c_uint ,
543545 pub st_nlink : c_uint ,
544546 pub st_uid : uid_t ,
545547 pub st_gid : gid_t ,
546548 pub st_rdev : c_ulonglong ,
547549 pub __pad3 : [ c_uchar ; 4 ] ,
548550 pub st_size : c_longlong ,
549- pub st_blksize : blksize_t ,
551+ pub st_blksize : c_ulong ,
550552 pub st_blocks : c_ulonglong ,
551553 pub st_atime : time_t ,
552554 pub st_atime_nsec : c_ulong ,
@@ -568,6 +570,7 @@ pub mod types {
568570 pub __size : [ u32 ; 9 ]
569571 }
570572 }
573+
571574 #[ cfg( any( target_arch = "mips" ,
572575 target_arch = "mipsel" ) ) ]
573576 pub mod posix01 {
0 commit comments