File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
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 && !musl {
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" ) ;
@@ -663,6 +666,10 @@ fn main() {
663
666
} else {
664
667
cfg. header ( "linux/fcntl.h" ) ;
665
668
}
669
+ if !musl {
670
+ cfg. header ( "net/if.h" ) ;
671
+ cfg. header ( "linux/if.h" ) ;
672
+ }
666
673
cfg. header ( "linux/quota.h" ) ;
667
674
cfg. skip_const ( move |name| {
668
675
match name {
Original file line number Diff line number Diff line change @@ -626,6 +626,10 @@ pub const F_TEST: ::c_int = 3;
626
626
pub const F_TLOCK : :: c_int = 2 ;
627
627
pub const F_ULOCK : :: c_int = 0 ;
628
628
629
+ pub const IFF_LOWER_UP : :: c_int = 0x10000 ;
630
+ pub const IFF_DORMANT : :: c_int = 0x20000 ;
631
+ pub const IFF_ECHO : :: c_int = 0x40000 ;
632
+
629
633
pub const ST_RDONLY : :: c_ulong = 1 ;
630
634
pub const ST_NOSUID : :: c_ulong = 2 ;
631
635
pub const ST_NODEV : :: c_ulong = 4 ;
You can’t perform that action at this time.
0 commit comments