File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,21 @@ pub type time_t = c_longlong;
31
31
pub type c_double = f64 ;
32
32
pub type c_float = f32 ;
33
33
pub type ino_t = u64 ;
34
- #[ cfg( not( target_vendor = "wasmer" ) ) ]
35
- pub type sigset_t = c_uchar ;
34
+ cfg_if ! {
35
+ if #[ cfg( target_vendor = "wasmer" ) ] {
36
+ s! {
37
+ #[ repr( C ) ]
38
+ pub struct sigset_t {
39
+ #[ cfg( target_pointer_width = "32" ) ]
40
+ __val: [ u32 ; 2 ] ,
41
+ #[ cfg( target_pointer_width = "64" ) ]
42
+ __val: [ u64 ; 1 ] ,
43
+ }
44
+ }
45
+ } else {
46
+ pub type sigset_t = c_uchar;
47
+ }
48
+ }
36
49
pub type suseconds_t = c_longlong ;
37
50
pub type mode_t = u32 ;
38
51
pub type dev_t = u64 ;
Original file line number Diff line number Diff line change @@ -209,14 +209,6 @@ s! {
209
209
__size: [ u64 ; 7 ] ,
210
210
}
211
211
212
- #[ repr( C ) ]
213
- pub struct sigset_t {
214
- #[ cfg( target_pointer_width = "32" ) ]
215
- __val: [ u32 ; 2 ] ,
216
- #[ cfg( target_pointer_width = "64" ) ]
217
- __val: [ u64 ; 1 ] ,
218
- }
219
-
220
212
#[ repr( C ) ]
221
213
pub struct siginfo_t {
222
214
pub si_signo: :: c_int,
@@ -1031,4 +1023,4 @@ pub fn W_STOPCODE(sig: ::c_int) -> ::c_int {
1031
1023
1032
1024
pub fn QCMD ( cmd : :: c_int , type_ : :: c_int ) -> :: c_int {
1033
1025
( cmd << 8 ) | ( type_ & 0x00ff )
1034
- }
1026
+ }
You can’t perform that action at this time.
0 commit comments