Skip to content

Commit

Permalink
Avoid constants before structs in i686-unknown-linux-musl
Browse files Browse the repository at this point in the history
  • Loading branch information
victorpaleologue committed Aug 30, 2022
1 parent ac7552a commit 804ffa4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/unix/linux_like/linux/musl/b32/x86/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ pub type c_char = i8;
pub type wchar_t = i32;
pub type greg_t = i32;

pub const _NSIG: ::size_t = 64;
pub const _NSIG_BPW: ::size_t = if cfg!(target_arch = "x86_64") { 64 } else { 32 };
pub const _NSIG_WORDS: ::size_t = _NSIG / _NSIG_BPW;

s! {
pub struct stat {
pub st_dev: ::dev_t,
Expand Down Expand Up @@ -150,7 +146,7 @@ s! {
}

pub struct sigset_t {
pub sig: [::c_ulong; _NSIG_WORDS]
pub sig: [::c_ulong; if cfg!(target_arch = "x86_64") { 1 } else { 2 };]
}

pub struct statfs64 {
Expand Down

0 comments on commit 804ffa4

Please sign in to comment.