From e3b0b81c44c2676d77dd1201d101554621257ad1 Mon Sep 17 00:00:00 2001 From: luozijun <gnulinux@126.com> Date: Tue, 12 Dec 2017 00:52:39 +0800 Subject: [PATCH] update libc-test/build.rs --- libc-test/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); } -- GitLab