File tree 3 files changed +27
-2
lines changed
3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -2836,6 +2836,9 @@ fn test_emscripten(target: &str) {
2836
2836
} ) ;
2837
2837
2838
2838
cfg. skip_struct ( move |ty| {
2839
+ if ty. starts_with ( "__c_anonymous_" ) {
2840
+ return true ;
2841
+ }
2839
2842
match ty {
2840
2843
// FIXME: It was removed in
2841
2844
// emscripten-core/emscripten@953e414
Original file line number Diff line number Diff line change 465
465
pub ifa_flags: :: c_uint,
466
466
pub ifa_addr: * mut :: sockaddr,
467
467
pub ifa_netmask: * mut :: sockaddr,
468
- pub ifa_ifu: * mut :: sockaddr , // FIXME This should be a union
468
+ pub ifa_ifu: __c_anonymous_ifa_ifu ,
469
469
pub ifa_data: * mut :: c_void,
470
470
}
471
471
@@ -1046,6 +1046,11 @@ s_no_extra_traits! {
1046
1046
pub sival_int: :: int,
1047
1047
pub sival_ptr: * mut :: c_void,
1048
1048
}
1049
+
1050
+ pub union __c_anonymous_ifa_ifu {
1051
+ ifu_broadaddr: * mut sockaddr,
1052
+ ifu_dstaddr: * mut sockaddr,
1053
+ }
1049
1054
}
1050
1055
1051
1056
cfg_if ! {
@@ -1357,6 +1362,12 @@ cfg_if! {
1357
1362
f. debug_struct( "sigval" ) . finish_non_exhaustive( )
1358
1363
}
1359
1364
}
1365
+
1366
+ impl :: fmt:: Debug for __c_anonymous_ifa_ifu {
1367
+ fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
1368
+ f. debug_struct( "ifa_ifu" ) . finish_non_exhaustive( )
1369
+ }
1370
+ }
1360
1371
}
1361
1372
}
1362
1373
Original file line number Diff line number Diff line change 159
159
pub ifa_flags: :: c_uint,
160
160
pub ifa_addr: * mut :: sockaddr,
161
161
pub ifa_netmask: * mut :: sockaddr,
162
- pub ifa_ifu: * mut :: sockaddr , // FIXME This should be a union
162
+ pub ifa_ifu: __c_anonymous_ifa_ifu ,
163
163
pub ifa_data: * mut :: c_void,
164
164
}
165
165
@@ -257,6 +257,11 @@ s_no_extra_traits! {
257
257
#[ cfg( target_pointer_width = "32" ) ]
258
258
__unused1: [ :: c_int; 12 ] ,
259
259
}
260
+
261
+ pub union __c_anonymous_ifa_ifu {
262
+ ifu_broadaddr: * mut sockaddr,
263
+ ifu_dstaddr: * mut sockaddr,
264
+ }
260
265
}
261
266
262
267
cfg_if ! {
@@ -412,6 +417,12 @@ cfg_if! {
412
417
. finish( )
413
418
}
414
419
}
420
+
421
+ impl :: fmt:: Debug for __c_anonymous_ifa_ifu {
422
+ fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
423
+ f. debug_struct( "ifa_ifu" ) . finish_non_exhaustive( )
424
+ }
425
+ }
415
426
}
416
427
}
417
428
You can’t perform that action at this time.
0 commit comments