@@ -11,10 +11,7 @@ pub type ino64_t = u64;
1111pub type off64_t = i64 ;
1212pub type blkcnt64_t = i64 ;
1313pub type rlim64_t = u64 ;
14- pub type shmatt_t = :: c_ulong ;
1514pub type mqd_t = :: c_int ;
16- pub type msgqnum_t = :: c_ulong ;
17- pub type msglen_t = :: c_ulong ;
1815pub type nfds_t = :: c_ulong ;
1916pub type nl_item = :: c_int ;
2017pub type idtype_t = :: c_uint ;
7471 }
7572
7673 pub struct pthread_mutex_t {
77- #[ cfg( any( target_arch = "mips" , target_arch = "arm" ,
78- target_arch = "powerpc" ) ) ]
74+ #[ cfg( any( target_arch = "mips" ,
75+ target_arch = "arm" ,
76+ target_arch = "powerpc" ,
77+ all( target_arch = "x86_64" ,
78+ target_pointer_width = "32" ) ) ) ]
7979 __align: [ :: c_long; 0 ] ,
80- #[ cfg( not( any( target_arch = "mips" , target_arch = "arm" ,
81- target_arch = "powerpc" ) ) ) ]
80+ #[ cfg( not( any( target_arch = "mips" ,
81+ target_arch = "arm" ,
82+ target_arch = "powerpc" ,
83+ all( target_arch = "x86_64" ,
84+ target_pointer_width = "32" ) ) ) ) ]
8285 __align: [ :: c_longlong; 0 ] ,
8386 size: [ u8 ; __SIZEOF_PTHREAD_MUTEX_T] ,
8487 }
8588
8689 pub struct pthread_rwlock_t {
87- #[ cfg( any( target_arch = "mips" , target_arch = "arm" ,
88- target_arch = "powerpc" ) ) ]
90+ #[ cfg( any( target_arch = "mips" ,
91+ target_arch = "arm" ,
92+ target_arch = "powerpc" ,
93+ all( target_arch = "x86_64" ,
94+ target_pointer_width = "32" ) ) ) ]
8995 __align: [ :: c_long; 0 ] ,
90- #[ cfg( not( any( target_arch = "mips" , target_arch = "arm" ,
91- target_arch = "powerpc" ) ) ) ]
96+ #[ cfg( not( any( target_arch = "mips" ,
97+ target_arch = "arm" ,
98+ target_arch = "powerpc" ,
99+ all( target_arch = "x86_64" ,
100+ target_pointer_width = "32" ) ) ) ) ]
92101 __align: [ :: c_longlong; 0 ] ,
93102 size: [ u8 ; __SIZEOF_PTHREAD_RWLOCK_T] ,
94103 }
163172 pub f_favail: :: fsfilcnt_t,
164173 #[ cfg( target_endian = "little" ) ]
165174 pub f_fsid: :: c_ulong,
166- #[ cfg( target_pointer_width = "32" ) ]
175+ #[ cfg( all ( target_pointer_width = "32" , not ( target_arch = "x86_64" ) ) ) ]
167176 __f_unused: :: c_int,
168177 #[ cfg( target_endian = "big" ) ]
169178 pub f_fsid: :: c_ulong,
@@ -240,9 +249,11 @@ s! {
240249 }
241250
242251 pub struct cpu_set_t {
243- #[ cfg( target_pointer_width = "32" ) ]
252+ #[ cfg( all( target_pointer_width = "32" ,
253+ not( target_arch = "x86_64" ) ) ) ]
244254 bits: [ u32 ; 32 ] ,
245- #[ cfg( target_pointer_width = "64" ) ]
255+ #[ cfg( not( all( target_pointer_width = "32" ,
256+ not( target_arch = "x86_64" ) ) ) ) ]
246257 bits: [ u64 ; 16 ] ,
247258 }
248259
0 commit comments