File tree 4 files changed +24
-0
lines changed
4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ fn main() {
40
40
println ! ( "cargo:rustc-cfg=libc_deny_warnings" ) ;
41
41
}
42
42
43
+ // Rust >= 1.14 supports long array:
44
+ if rustc_minor_ver >= 14 || rustc_dep_of_std {
45
+ println ! ( "cargo:rustc-cfg=libc_long_array" ) ;
46
+ }
47
+
43
48
// Rust >= 1.15 supports private module use:
44
49
if rustc_minor_ver >= 15 || rustc_dep_of_std {
45
50
println ! ( "cargo:rustc-cfg=libc_priv_mod_use" ) ;
Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ CTLFLAG_RD
266
266
CTLFLAG_RW
267
267
CTLFLAG_SECURE
268
268
CTLFLAG_WR
269
+ CTLIOCGINFO
269
270
CTLTYPE
270
271
CTLTYPE_INT
271
272
CTLTYPE_NODE
@@ -1844,6 +1845,7 @@ copyfile
1844
1845
copyfile_flags_t
1845
1846
cpu_subtype_t
1846
1847
cpu_type_t
1848
+ ctl_info
1847
1849
difftime
1848
1850
dirfd
1849
1851
disconnectx
Original file line number Diff line number Diff line change
1
+ s ! {
2
+ pub struct ctl_info {
3
+ pub ctl_id: u32 ,
4
+ pub ctl_name: [ :: c_char; MAX_KCTL_NAME ] ,
5
+ }
6
+ }
7
+
8
+ pub const MAX_KCTL_NAME : usize = 96 ;
Original file line number Diff line number Diff line change @@ -3313,6 +3313,8 @@ pub const MINCORE_MODIFIED: ::c_int = 0x4;
3313
3313
pub const MINCORE_REFERENCED_OTHER : :: c_int = 0x8 ;
3314
3314
pub const MINCORE_MODIFIED_OTHER : :: c_int = 0x10 ;
3315
3315
3316
+ pub const CTLIOCGINFO : c_ulong = 0xc0644e03 ;
3317
+
3316
3318
//
3317
3319
// sys/netinet/in.h
3318
3320
// Protocols (RFC 1700)
@@ -5931,3 +5933,10 @@ cfg_if! {
5931
5933
// Unknown target_arch
5932
5934
}
5933
5935
}
5936
+
5937
+ cfg_if ! {
5938
+ if #[ cfg( libc_long_array) ] {
5939
+ mod long_array;
5940
+ pub use self :: long_array:: * ;
5941
+ }
5942
+ }
You can’t perform that action at this time.
0 commit comments