@@ -5479,14 +5479,24 @@ fn test_aix(target: &str) {
54795479
54805480 cfg. skip_struct ( move |struct_| {
54815481 match struct_. ident ( ) {
5482- // '__poll_ctl_ext_u' and '__pollfd_ext_u' are for unnamed unions.
5483- "__poll_ctl_ext_u" => true ,
5484- "__pollfd_ext_u" => true ,
5485-
54865482 // 'struct fpreg_t' is not defined in AIX headers. It is created to
54875483 // allow type 'double' to be used in signal contexts.
54885484 "fpreg_t" => true ,
54895485
5486+ // These structures are guarded by the `_KERNEL` macro in the AIX
5487+ // header.
5488+ "fileops_t" | "file" => true ,
5489+
5490+ _ => false ,
5491+ }
5492+ } ) ;
5493+
5494+ cfg. skip_union ( |union_| {
5495+ match union_. ident ( ) {
5496+ // '__poll_ctl_ext_u' and '__pollfd_ext_u' are for unnamed unions.
5497+ "__poll_ctl_ext_u" => true ,
5498+ "__pollfd_ext_u" => true ,
5499+
54905500 // This type is defined for a union used within `struct ld_info`.
54915501 // The AIX header does not declare a separate standalone union
54925502 // type for it.
@@ -5495,10 +5505,6 @@ fn test_aix(target: &str) {
54955505 // This is a simplified version of the AIX union `_simple_lock`.
54965506 "_kernel_simple_lock" => true ,
54975507
5498- // These structures are guarded by the `_KERNEL` macro in the AIX
5499- // header.
5500- "fileops_t" | "file" => true ,
5501-
55025508 _ => false ,
55035509 }
55045510 } ) ;
@@ -5625,6 +5631,9 @@ fn test_aix(target: &str) {
56255631 _ => false ,
56265632 } ) ;
56275633
5634+ let c_enums = [ "uio_rw" ] ;
5635+ cfg. alias_is_c_enum ( move |e| c_enums. contains ( & e) ) ;
5636+
56285637 ctest:: generate_test ( & mut cfg, "../src/lib.rs" , "ctest_output.rs" ) . unwrap ( ) ;
56295638}
56305639
0 commit comments