Skip to content

Commit c8a0faf

Browse files
asomerstgross35
authored andcommitted
Fix alignment of mcontext_t on FreeBSD x86
https://github.com/freebsd/freebsd-src/blob/main/sys/x86/include/ucontext.h (backport <#3948>) (cherry picked from commit 908fc71)
1 parent 39e6c09 commit c8a0faf

File tree

1 file changed

+1
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd

1 file changed

+1
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/x86.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pub type suseconds_t = i32;
77
pub type register_t = i32;
88

99
s_no_extra_traits! {
10+
#[repr(align(16))]
1011
pub struct mcontext_t {
1112
pub mc_onstack: register_t,
1213
pub mc_gs: register_t,

0 commit comments

Comments
 (0)