diff --git a/libc-test/build.rs b/libc-test/build.rs index edf94d71..b2fee90e 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -179,9 +179,12 @@ fn main() { if bsdlike { cfg.header("sys/event.h"); - + if apple { + cfg.header("sys/net/if_dl.h"); + } if freebsd { cfg.header("libutil.h"); + cfg.header("sys/net/if_dl.h"); } else { cfg.header("util.h"); }