From 338dd7c0859ec5e1ec6c80f6f6f4f267d1cde407 Mon Sep 17 00:00:00 2001 From: Yuji Yamamoto <yuji-yamamoto@iij.ad.jp> Date: Fri, 13 Dec 2019 12:06:30 +0900 Subject: [PATCH] Add ucontext.h to test target --- libc-test/build.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libc-test/build.rs b/libc-test/build.rs index a975b4d4..57ae4aa1 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1300,6 +1300,7 @@ fn test_android(target: &str) { "sys/time.h", "sys/times.h", "sys/types.h", + "sys/ucontext.h", "sys/uio.h", "sys/un.h", "sys/utsname.h", @@ -1390,10 +1391,15 @@ fn test_android(target: &str) { }); cfg.skip_struct(move |ty| { + if ty.starts_with("__c_anonymous_") { + return true; + } match ty { // These are tested as part of the linux_fcntl tests since there are // header conflicts when including them with all the other structs. "termios2" => true, + // uc_sigmask and uc_sigmask64 of ucontext_t are an anonymous union + "ucontext_t" => true, _ => false, } -- GitLab