Skip to content

Commit

Permalink
Remove overwritten cfg.skip_field() call in test_android()
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-alpaca committed Dec 19, 2023
1 parent c0b1ccf commit ba4dd05
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions libc-test/build.rs
Expand Up @@ -1972,21 +1972,6 @@ fn test_android(target: &str) {
(struct_ == "flock64" && (field == "l_start" || field == "l_len"))
});

cfg.skip_field(move |struct_, field| {
// this is actually a union on linux, so we can't represent it well and
// just insert some padding.
(struct_ == "siginfo_t" && field == "_pad") ||
// FIXME: `sa_sigaction` has type `sighandler_t` but that type is
// incorrect, see: https://github.com/rust-lang/libc/issues/1359
(struct_ == "sigaction" && field == "sa_sigaction") ||
// sigev_notify_thread_id is actually part of a sigev_un union
(struct_ == "sigevent" && field == "sigev_notify_thread_id") ||
// signalfd had SIGSYS fields added in Android 4.19, but CI does not have that version yet.
(struct_ == "signalfd_siginfo" && (field == "ssi_syscall" ||
field == "ssi_call_addr" ||
field == "ssi_arch"))
});

cfg.skip_field(|struct_, field| {
match (struct_, field) {
// conflicting with `p_type` macro from <resolve.h>.
Expand Down

0 comments on commit ba4dd05

Please sign in to comment.