Skip to content

Commit 12e22cf

Browse files
committed
Auto merge of rust-lang#669 - GuillaumeGomez:mac-consts, r=alexcrichton
Add missing constants for mac I didn't find these constants on other systems than mac so only mac is updated...
2 parents c00686f + e7df808 commit 12e22cf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc-test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ fn main() {
155155
if target.starts_with("x86") {
156156
cfg.header("crt_externs.h");
157157
}
158+
cfg.header("net/route.h");
158159
}
159160

160161
if bsdlike {

src/unix/bsd/apple/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,9 @@ pub const XATTR_NOSECURITY: ::c_int = 0x0008;
15381538
pub const XATTR_NODEFAULT: ::c_int = 0x0010;
15391539
pub const XATTR_SHOWCOMPRESSION: ::c_int = 0x0020;
15401540

1541+
pub const NET_RT_IFLIST2: ::c_int = 0x0006;
1542+
pub const RTM_IFINFO2: ::c_int = 0x0012;
1543+
15411544
f! {
15421545
pub fn WSTOPSIG(status: ::c_int) -> ::c_int {
15431546
status >> 8

0 commit comments

Comments
 (0)