From 886bb3f2f863459b0651b6a22c9e57d4ac6dce61 Mon Sep 17 00:00:00 2001 From: "Adam C. Foltzer" <acfoltzer@fastly.com> Date: Wed, 26 Jun 2019 16:56:53 -0700 Subject: [PATCH] filter out the struct test rather than removing the header --- libc-test/build.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index dc4fcc73..55f82318 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, } }); -- GitLab