Skip to content
Snippets Groups Projects
Commit 420f2e4c authored by Alexander Polakov's avatar Alexander Polakov Committed by root
Browse files

Disable sockaddr_nl on musl target

parent 6b58ed3b
No related branches found
No related tags found
No related merge requests found
......@@ -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" |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment