Skip to content

Commit

Permalink
Fix alignment of mcontext_t on FreeBSD x86
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed Oct 15, 2024
1 parent ad2d864 commit 908fc71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/bsd/freebsdlike/freebsd/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub type suseconds_t = i32;
pub type register_t = i32;

s_no_extra_traits! {
#[repr(align(16))]
pub struct mcontext_t {
pub mc_onstack: register_t,
pub mc_gs: register_t,
Expand Down

0 comments on commit 908fc71

Please sign in to comment.