Disable sockaddr_nl on musl target

See https://github.com/rust-lang-nursery/libc/pull/50 for details
This commit is contained in:
Alexander Polakov 2015-11-11 01:53:39 +03:00 committed by root
parent 6b58ed3bc1
commit 420f2e4c80

View File

@ -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" |