Prevent testing linux/if.h definitions on musl targets

This commit is contained in:
SilverWingedSeraph 2017-09-12 12:33:10 -05:00
parent 121795e34c
commit 6f170efdcf
1 changed files with 5 additions and 3 deletions

View File

@ -91,7 +91,7 @@ fn main() {
cfg.header("sys/mman.h");
cfg.header("sys/resource.h");
cfg.header("sys/socket.h");
if linux {
if linux && !musl {
cfg.header("linux/if.h");
}
cfg.header("sys/time.h");
@ -665,8 +665,10 @@ fn main() {
} else {
cfg.header("linux/fcntl.h");
}
cfg.header("net/if.h");
cfg.header("linux/if.h");
if !musl {
cfg.header("net/if.h");
cfg.header("linux/if.h");
}
cfg.header("linux/quota.h");
cfg.skip_const(move |name| {
match name {