diff options
author | Yuji Yamamoto <yuji-yamamoto@iij.ad.jp> | 2019-12-13 12:06:30 +0900 |
---|---|---|
committer | YAMAMOTO Yuji <yuji-yamamoto@iij.ad.jp> | 2020-02-28 15:59:48 +0900 |
commit | 338dd7c0859ec5e1ec6c80f6f6f4f267d1cde407 (patch) | |
tree | b70126417d4b31d2341c24a4024f26e2d817375f /libc-test | |
parent | b03f713e3ca2ea22ab5b7cde3659c451cc196f2b (diff) | |
download | rust-libc-338dd7c0859ec5e1ec6c80f6f6f4f267d1cde407.tar.gz |
Add ucontext.h to test target
Diffstat (limited to 'libc-test')
-rw-r--r-- | libc-test/build.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index a975b4d49f..57ae4aa19c 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, } |