Auto merge of #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...
This commit is contained in:
bors 2017-07-17 23:45:11 +00:00
commit 12e22cf5a5
2 changed files with 4 additions and 0 deletions

View File

@ -155,6 +155,7 @@ fn main() {
if target.starts_with("x86") {
cfg.header("crt_externs.h");
}
cfg.header("net/route.h");
}
if bsdlike {

View File

@ -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