Skip to content

Commit 4d0b775

Browse files
committed
Prevent testing linux/if.h definitions on musl targets
1 parent 121795e commit 4d0b775

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

libc-test/build.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,10 @@ fn main() {
665665
} else {
666666
cfg.header("linux/fcntl.h");
667667
}
668-
cfg.header("net/if.h");
669-
cfg.header("linux/if.h");
668+
if !musl {
669+
cfg.header("net/if.h");
670+
cfg.header("linux/if.h");
671+
}
670672
cfg.header("linux/quota.h");
671673
cfg.skip_const(move |name| {
672674
match name {

0 commit comments

Comments
 (0)