summaryrefslogtreecommitdiff
path: root/libc-test
diff options
context:
space:
mode:
authorAdam C. Foltzer <acfoltzer@fastly.com>2019-06-26 16:56:53 -0700
committerAdam C. Foltzer <acfoltzer@fastly.com>2019-06-26 16:56:53 -0700
commit886bb3f2f863459b0651b6a22c9e57d4ac6dce61 (patch)
tree4748a758ade50b454060348594829a8ef6ab32f0 /libc-test
parentdba4138305c5cd28e33775d6d4059a1c5fe2292d (diff)
downloadrust-libc-886bb3f2f863459b0651b6a22c9e57d4ac6dce61.tar.gz
filter out the struct test rather than removing the header
Diffstat (limited to 'libc-test')
-rw-r--r--libc-test/build.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index dc4fcc7344..55f823187d 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -1950,6 +1950,7 @@ fn test_linux(target: &str) {
"syslog.h",
"termios.h",
"time.h",
+ "ucontext.h",
"unistd.h",
"utime.h",
"utmp.h",
@@ -1967,10 +1968,6 @@ fn test_linux(target: &str) {
// <execinfo.h> is not supported by musl:
// https://www.openwall.com/lists/musl/2015/04/09/3
[!musl]: "execinfo.h",
- // ucontext_t added a new field as of glibc 2.28; our struct definition is
- // conservative and omits the field, but that means the size doesn't match for newer
- // glibcs
- [!gnu]: "ucontext.h",
}
// Include linux headers at the end:
@@ -2101,6 +2098,11 @@ fn test_linux(target: &str) {
// FIXME: musl version using by mips build jobs 1.0.15 is ancient:
"ifmap" | "ifreq" | "ifconf" if mips32_musl => true,
+ // ucontext_t added a new field as of glibc 2.28; our struct definition is
+ // conservative and omits the field, but that means the size doesn't match for newer
+ // glibcs (see https://github.com/rust-lang/libc/issues/1410)
+ "ucontext_t" if gnu => true,
+
_ => false,
}
});