Skip to content

Commit

Permalink
fixup: style
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Nov 25, 2024
1 parent c7d713d commit 1c4bfb0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/unix/linux_like/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,10 +574,13 @@ pub const SIGALRM: ::c_int = 14;
pub const SIGTERM: ::c_int = 15;

const SIGEV_MAX_SIZE: usize = 64;
#[cfg(target_pointer_width = "64")]
const __ARCH_SIGEV_PREAMBLE_SIZE: usize = 4 * 2 + 8;
#[cfg(target_pointer_width = "32")]
const __ARCH_SIGEV_PREAMBLE_SIZE: usize = 4 * 2 + 4;
cfg_if! {
if #[cfg(target_pointer_width = "64")] {
const __ARCH_SIGEV_PREAMBLE_SIZE: usize = 4 * 2 + 8;
} else {
const __ARCH_SIGEV_PREAMBLE_SIZE: usize = 4 * 2 + 4;
}
}
const SIGEV_PAD_SIZE: usize = (SIGEV_MAX_SIZE - __ARCH_SIGEV_PREAMBLE_SIZE) / 4;

pub const PROT_NONE: ::c_int = 0;
Expand Down

0 comments on commit 1c4bfb0

Please sign in to comment.