From 3a2d34779f921bb45c0384593d873b2d92b17609 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 16 Jul 2017 20:40:58 +0200 Subject: [PATCH 1/2] Add missing constants for mac --- src/unix/bsd/apple/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index dd6a0e1d..006bef0e 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -1538,6 +1538,9 @@ pub const XATTR_NOSECURITY: ::c_int = 0x0008; pub const XATTR_NODEFAULT: ::c_int = 0x0010; pub const XATTR_SHOWCOMPRESSION: ::c_int = 0x0020; +pub const NET_RT_IFLIST2: ::c_int = 0x0006; +pub const RTM_IFINFO2: ::c_int = 0x0012; + f! { pub fn WSTOPSIG(status: ::c_int) -> ::c_int { status >> 8 From e7df808d68bb3a0120c6b86007a49c96284f7ae7 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 16 Jul 2017 22:22:32 +0200 Subject: [PATCH 2/2] Add header for mac targets --- libc-test/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libc-test/build.rs b/libc-test/build.rs index ce907e96..0b905497 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -155,6 +155,7 @@ fn main() { if target.starts_with("x86") { cfg.header("crt_externs.h"); } + cfg.header("net/route.h"); } if bsdlike {