Skip to content

Commit 39e6c09

Browse files
asomerstgross35
authored andcommitted
Fix the definition of mc_fpstate on FreeBSD x86
The definition added in b811b70 was technically wrong even though the type size was correct. It was probably defined this way because earlier versions of Rust had difficulty with fixed-size arrays of size greater than 32. This change is necessary for CI to pass on x86 FreeBSD. https://github.com/freebsd/freebsd-src/blob/main/sys/x86/include/ucontext.h (backport <#3948>) (cherry picked from commit ad2d864)
1 parent fabc6d1 commit 39e6c09

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ s_no_extra_traits! {
3232
pub mc_fpformat: ::c_int,
3333
pub mc_ownedfp: ::c_int,
3434
pub mc_flags: register_t,
35-
pub mc_fpstate: [[::c_int; 32]; 4],
35+
pub mc_fpstate: [::c_int; 128],
3636
pub mc_fsbase: register_t,
3737
pub mc_gsbase: register_t,
3838
pub mc_xfpustate: register_t,

0 commit comments

Comments
 (0)