File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,9 @@ fn main() {
91
91
cfg. header ( "sys/mman.h" ) ;
92
92
cfg. header ( "sys/resource.h" ) ;
93
93
cfg. header ( "sys/socket.h" ) ;
94
+ if linux {
95
+ cfg. header ( "linux/if.h" ) ;
96
+ }
94
97
cfg. header ( "sys/time.h" ) ;
95
98
cfg. header ( "sys/un.h" ) ;
96
99
cfg. header ( "sys/wait.h" ) ;
@@ -662,6 +665,8 @@ fn main() {
662
665
} else {
663
666
cfg. header ( "linux/fcntl.h" ) ;
664
667
}
668
+ cfg. header ( "net/if.h" ) ;
669
+ cfg. header ( "linux/if.h" ) ;
665
670
cfg. header ( "linux/quota.h" ) ;
666
671
cfg. skip_const ( move |name| {
667
672
match name {
Original file line number Diff line number Diff line change @@ -621,11 +621,8 @@ pub const F_TEST: ::c_int = 3;
621
621
pub const F_TLOCK : :: c_int = 2 ;
622
622
pub const F_ULOCK : :: c_int = 0 ;
623
623
624
- #[ cfg( any( target_arch="x86_64" , target_arch="x86" ) ) ]
625
624
pub const IFF_LOWER_UP : :: c_int = 0x10000 ;
626
- #[ cfg( any( target_arch="x86_64" , target_arch="x86" ) ) ]
627
625
pub const IFF_DORMANT : :: c_int = 0x20000 ;
628
- #[ cfg( any( target_arch="x86_64" , target_arch="x86" ) ) ]
629
626
pub const IFF_ECHO : :: c_int = 0x40000 ;
630
627
631
628
pub const ST_RDONLY : :: c_ulong = 1 ;
You can’t perform that action at this time.
0 commit comments