Skip to content

Commit 338dd7c

Browse files
author
Yuji Yamamoto
committed
Add ucontext.h to test target
1 parent b03f713 commit 338dd7c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libc-test/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,7 @@ fn test_android(target: &str) {
13001300
"sys/time.h",
13011301
"sys/times.h",
13021302
"sys/types.h",
1303+
"sys/ucontext.h",
13031304
"sys/uio.h",
13041305
"sys/un.h",
13051306
"sys/utsname.h",
@@ -1390,10 +1391,15 @@ fn test_android(target: &str) {
13901391
});
13911392

13921393
cfg.skip_struct(move |ty| {
1394+
if ty.starts_with("__c_anonymous_") {
1395+
return true;
1396+
}
13931397
match ty {
13941398
// These are tested as part of the linux_fcntl tests since there are
13951399
// header conflicts when including them with all the other structs.
13961400
"termios2" => true,
1401+
// uc_sigmask and uc_sigmask64 of ucontext_t are an anonymous union
1402+
"ucontext_t" => true,
13971403

13981404
_ => false,
13991405
}

0 commit comments

Comments
 (0)