Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
fix

fix
  • Loading branch information
Brijeshkrishna committed Nov 16, 2023
1 parent 7debf3f commit b3b6980
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4168,6 +4168,8 @@ fn test_linux(target: &str) {
(struct_ == "ifconf" && field == "ifc_ifcu") ||
// the `ifr_ifrn` field is an anonymous union
(struct_ == "iwreq" && field == "ifr_ifrn") ||
// the `key` field is a zero-sized array
(struct_ == "iw_encode_ext" && field == "key") ||
// glibc uses a single array `uregs` instead of individual fields.
(struct_ == "user_regs" && arm)
});
Expand Down
7 changes: 5 additions & 2 deletions src/unix/linux_like/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ s! {
}

// linux/wireless.h

pub struct iw_param {
pub value: __s32,
pub fixed: __u8,
Expand Down Expand Up @@ -778,7 +778,7 @@ s! {
pub addr: ::sockaddr,
pub alg: __u16,
pub key_len: __u16,
pub key: [__u8; 0],
pub key: [__u8;0],
}
pub struct iw_mlme {
pub cmd: __u16,
Expand Down Expand Up @@ -3223,6 +3223,9 @@ pub const IWEVASSOCREQIE: ::c_ulong = 0x8C07;
pub const IWEVASSOCRESPIE: ::c_ulong = 0x8C08;
pub const IWEVPMKIDCAND: ::c_ulong = 0x8C09;
pub const IWEVFIRST: ::c_ulong = 0x8C00;
pub fn IW_EVENT_IDX(cmd: ::c_ulong) -> ::c_ulong {
cmd - IWEVFIRST
}

pub const IW_PRIV_TYPE_MASK: ::c_ulong = 0x7000;
pub const IW_PRIV_TYPE_NONE: ::c_ulong = 0x0000;
Expand Down

0 comments on commit b3b6980

Please sign in to comment.