From 420f2e4c8005a43cb4f3fa8996592cd54b6055aa Mon Sep 17 00:00:00 2001 From: Alexander Polakov Date: Wed, 11 Nov 2015 01:53:39 +0300 Subject: [PATCH] Disable sockaddr_nl on musl target See https://github.com/rust-lang-nursery/libc/pull/50 for details --- libc-test/build.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index 58cec029..ccb902d9 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -108,7 +108,10 @@ fn main() { cfg.header("net/ethernet.h"); cfg.header("malloc.h"); cfg.header("sys/prctl.h"); - cfg.header("linux/netlink.h"); + /* linux kernel header */ + if !musl { + cfg.header("linux/netlink.h"); + } } if freebsd { @@ -178,6 +181,13 @@ fn main() { } }); + cfg.skip_struct(move |ty| { + match ty { + "sockaddr_nl" => musl, + _ => false + } + }); + cfg.skip_signededness(|c| { match c { "LARGE_INTEGER" |