Skip to content

Commit 2393bde

Browse files
committed
Fix libc CI.
1 parent fb1901d commit 2393bde

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

libc-test/build.rs

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5445,14 +5445,24 @@ fn test_aix(target: &str) {
54455445

54465446
cfg.skip_struct(move |struct_| {
54475447
match struct_.ident() {
5448-
// '__poll_ctl_ext_u' and '__pollfd_ext_u' are for unnamed unions.
5449-
"__poll_ctl_ext_u" => true,
5450-
"__pollfd_ext_u" => true,
5451-
54525448
// 'struct fpreg_t' is not defined in AIX headers. It is created to
54535449
// allow type 'double' to be used in signal contexts.
54545450
"fpreg_t" => true,
54555451

5452+
// These structures are guarded by the `_KERNEL` macro in the AIX
5453+
// header.
5454+
"fileops_t" | "file" => true,
5455+
5456+
_ => false,
5457+
}
5458+
});
5459+
5460+
cfg.skip_union(|union_| {
5461+
match union_.ident() {
5462+
// '__poll_ctl_ext_u' and '__pollfd_ext_u' are for unnamed unions.
5463+
"__poll_ctl_ext_u" => true,
5464+
"__pollfd_ext_u" => true,
5465+
54565466
// This type is defined for a union used within `struct ld_info`.
54575467
// The AIX header does not declare a separate standalone union
54585468
// type for it.
@@ -5461,10 +5471,6 @@ fn test_aix(target: &str) {
54615471
// This is a simplified version of the AIX union `_simple_lock`.
54625472
"_kernel_simple_lock" => true,
54635473

5464-
// These structures are guarded by the `_KERNEL` macro in the AIX
5465-
// header.
5466-
"fileops_t" | "file" => true,
5467-
54685474
_ => false,
54695475
}
54705476
});
@@ -5591,6 +5597,9 @@ fn test_aix(target: &str) {
55915597
_ => false,
55925598
});
55935599

5600+
let c_enums = ["uio_rw"];
5601+
cfg.alias_is_c_enum(move |e| c_enums.contains(&e));
5602+
55945603
ctest::generate_test(&mut cfg, "../src/lib.rs", "ctest_output.rs").unwrap();
55955604
}
55965605

0 commit comments

Comments
 (0)