File tree 3 files changed +9
-21
lines changed
3 files changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ const ALLOWED_CFGS: &'static [&'static str] = &[
15
15
"freebsd14" ,
16
16
"freebsd15" ,
17
17
"libc_deny_warnings" ,
18
- "libc_long_array" ,
19
18
"libc_thread_local" ,
20
19
"libc_ctest" ,
21
20
] ;
@@ -77,11 +76,6 @@ fn main() {
77
76
set_cfg ( "libc_deny_warnings" ) ;
78
77
}
79
78
80
- // Rust >= 1.47 supports long array:
81
- if rustc_minor_ver >= 47 || rustc_dep_of_std {
82
- set_cfg ( "libc_long_array" ) ;
83
- }
84
-
85
79
// #[thread_local] is currently unstable
86
80
if rustc_dep_of_std {
87
81
set_cfg ( "libc_thread_local" ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -1307,6 +1307,12 @@ s! {
1307
1307
pub iffmid_id: u32 ,
1308
1308
pub iffmid_str: [ :: c_char; 1 ] ,
1309
1309
}
1310
+
1311
+ // kern_control.h
1312
+ pub struct ctl_info {
1313
+ pub ctl_id: u32 ,
1314
+ pub ctl_name: [ :: c_char; MAX_KCTL_NAME ] ,
1315
+ }
1310
1316
}
1311
1317
1312
1318
s_no_extra_traits ! {
@@ -5753,6 +5759,9 @@ pub const NETLINK_GENERIC: ::c_int = 0;
5753
5759
pub const DOT3COMPLIANCE_STATS : :: c_int = 1 ;
5754
5760
pub const DOT3COMPLIANCE_COLLS : :: c_int = 2 ;
5755
5761
5762
+ // kern_control.h
5763
+ pub const MAX_KCTL_NAME : usize = 96 ;
5764
+
5756
5765
f ! {
5757
5766
pub fn CMSG_NXTHDR ( mhdr: * const :: msghdr,
5758
5767
cmsg: * const :: cmsghdr) -> * mut :: cmsghdr {
@@ -6825,10 +6834,3 @@ cfg_if! {
6825
6834
// Unknown target_arch
6826
6835
}
6827
6836
}
6828
-
6829
- cfg_if ! {
6830
- if #[ cfg( libc_long_array) ] {
6831
- mod long_array;
6832
- pub use self :: long_array:: * ;
6833
- }
6834
- }
You can’t perform that action at this time.
0 commit comments