Add tests for linux/if.h for additional IFF_ flags

Also remove unneeded platform gating
This commit is contained in:
SilverWingedSeraph 2017-09-12 09:09:13 -05:00
parent cf590691fb
commit 121795e34c
2 changed files with 5 additions and 3 deletions

View File

@ -91,6 +91,9 @@ fn main() {
cfg.header("sys/mman.h");
cfg.header("sys/resource.h");
cfg.header("sys/socket.h");
if linux {
cfg.header("linux/if.h");
}
cfg.header("sys/time.h");
cfg.header("sys/un.h");
cfg.header("sys/wait.h");
@ -662,6 +665,8 @@ fn main() {
} else {
cfg.header("linux/fcntl.h");
}
cfg.header("net/if.h");
cfg.header("linux/if.h");
cfg.header("linux/quota.h");
cfg.skip_const(move |name| {
match name {

View File

@ -621,11 +621,8 @@ pub const F_TEST: ::c_int = 3;
pub const F_TLOCK: ::c_int = 2;
pub const F_ULOCK: ::c_int = 0;
#[cfg(any(target_arch="x86_64", target_arch="x86"))]
pub const IFF_LOWER_UP: ::c_int = 0x10000;
#[cfg(any(target_arch="x86_64", target_arch="x86"))]
pub const IFF_DORMANT: ::c_int = 0x20000;
#[cfg(any(target_arch="x86_64", target_arch="x86"))]
pub const IFF_ECHO: ::c_int = 0x40000;
pub const ST_RDONLY: ::c_ulong = 1;