diff options
author | gnzlbg <gonzalobg88@gmail.com> | 2019-05-27 16:46:12 +0200 |
---|---|---|
committer | gnzlbg <gonzalobg88@gmail.com> | 2019-05-27 22:23:02 +0200 |
commit | 2543b7c8ed40d00890479ad83e5ba1e79e729209 (patch) | |
tree | 2edde52ff80ee3071e9589be9eeec7f722fdc86c /libc-test | |
parent | 1cbc523e50d7dd37f13330d3ef5b80d84b76705e (diff) | |
download | rust-libc-2543b7c8ed40d00890479ad83e5ba1e79e729209.tar.gz |
bump kernel headers to 4.4.2-2
Diffstat (limited to 'libc-test')
-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, } }); |