Disable sockaddr_nl on musl target
See https://github.com/rust-lang-nursery/libc/pull/50 for details
This commit is contained in:
parent
6b58ed3bc1
commit
420f2e4c80
@ -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" |
|
||||
|
Loading…
Reference in New Issue
Block a user