File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,11 @@ fn main() {
8383 println ! ( "cargo:rustc-cfg=libc_non_exhaustive" ) ;
8484 }
8585
86+ // Rust >= 1.47 supports long array:
87+ if rustc_minor_ver >= 47 || rustc_dep_of_std {
88+ println ! ( "cargo:rustc-cfg=libc_long_array" ) ;
89+ }
90+
8691 if rustc_minor_ver >= 51 || rustc_dep_of_std {
8792 println ! ( "cargo:rustc-cfg=libc_ptr_addr_of" ) ;
8893 }
Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ CTLFLAG_RD
266266CTLFLAG_RW
267267CTLFLAG_SECURE
268268CTLFLAG_WR
269+ CTLIOCGINFO
269270CTLTYPE
270271CTLTYPE_INT
271272CTLTYPE_NODE
@@ -1844,6 +1845,7 @@ copyfile
18441845copyfile_flags_t
18451846cpu_subtype_t
18461847cpu_type_t
1848+ ctl_info
18471849difftime
18481850dirfd
18491851disconnectx
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;
33133313pub const MINCORE_REFERENCED_OTHER : :: c_int = 0x8 ;
33143314pub const MINCORE_MODIFIED_OTHER : :: c_int = 0x10 ;
33153315
3316+ pub const CTLIOCGINFO : c_ulong = 0xc0644e03 ;
3317+
33163318//
33173319// sys/netinet/in.h
33183320// Protocols (RFC 1700)
@@ -5931,3 +5933,10 @@ cfg_if! {
59315933 // Unknown target_arch
59325934 }
59335935}
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