diff options
Diffstat (limited to 'libc-test/build.rs')
-rw-r--r-- | libc-test/build.rs | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 987ff9dd89..a0dcd8cecc 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2130,6 +2130,7 @@ fn test_linux(target: &str) { "linux/fs.h", "linux/futex.h", "linux/genetlink.h", + "linux/if.h", "linux/if_addr.h", "linux/if_alg.h", "linux/if_ether.h", @@ -2152,11 +2153,6 @@ fn test_linux(target: &str) { "sys/auxv.h", } - // FIXME: https://github.com/sabotage-linux/kernel-headers/issues/16 - if !musl { - headers!{ cfg: "linux/if.h" } - } - // note: aio.h must be included before sys/mount.h headers! { cfg: "sys/xattr.h", @@ -2305,6 +2301,9 @@ fn test_linux(target: &str) { // `linux_termios.rs` below: "BOTHER" => true, + // FIXME: on musl the pthread types are defined a little differently + // - these constants are used by the glibc implementation. + n if musl && n.contains("__SIZEOF_PTHREAD") => true, _ => false, } }); @@ -2332,6 +2331,12 @@ fn test_linux(target: &str) { // test the XSI version below. "strerror_r" => true, + // FIXME: Our API is unsound. The Rust API allows aliasing + // pointers, but the C API requires pointers not to alias. + // We should probably be at least using `&`/`&mut` here, see: + // https://github.com/gnzlbg/ctest/issues/68 + "lio_listio" if musl => true, + _ => false, } }); |