File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ fn main() {
177
177
cfg. header ( "net/route.h" ) ;
178
178
cfg. header ( "netinet/if_ether.h" ) ;
179
179
cfg. header ( "sys/proc_info.h" ) ;
180
+ cfg. header ( "kern_control.h" ) ;
180
181
}
181
182
182
183
if bsdlike {
@@ -216,7 +217,7 @@ fn main() {
216
217
cfg. header ( "sys/reg.h" ) ;
217
218
}
218
219
}
219
-
220
+
220
221
if linux || android || emscripten {
221
222
cfg. header ( "malloc.h" ) ;
222
223
cfg. header ( "net/ethernet.h" ) ;
Original file line number Diff line number Diff line change @@ -498,6 +498,15 @@ s! {
498
498
pub sin_tos: :: c_ushort,
499
499
pub sin_other: :: c_ushort,
500
500
}
501
+
502
+ pub struct sockaddr_ctl {
503
+ pub sc_len: :: c_uchar,
504
+ pub sc_family: :: c_uchar,
505
+ pub ss_sysaddr: :: uint16_t,
506
+ pub sc_id: :: uint32_t,
507
+ pub sc_unit: :: uint32_t,
508
+ pub sc_reserved: [ :: uint32_t; 5 ] ,
509
+ }
501
510
}
502
511
503
512
pub const _UTX_USERSIZE: usize = 256 ;
You can’t perform that action at this time.
0 commit comments