From 816b52478c6f057a58a10fb7e09f38864330f71c Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Mon, 21 Oct 2024 14:31:47 -0600 Subject: [PATCH] Fix the build on armv7-unknown-freebsd PR #3848 broke the build on armv7-unknown-freebsd by defining a field to be of an unknown type. Use the correct type name `usize` instead of `::__size_t`. --- src/unix/bsd/freebsdlike/freebsd/arm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/bsd/freebsdlike/freebsd/arm.rs b/src/unix/bsd/freebsdlike/freebsd/arm.rs index 58cf6263310a6..8bc9378be2e6d 100644 --- a/src/unix/bsd/freebsdlike/freebsd/arm.rs +++ b/src/unix/bsd/freebsdlike/freebsd/arm.rs @@ -11,7 +11,7 @@ pub type __gregset_t = [::__greg_t; 17]; s_no_extra_traits! { pub struct mcontext_t { pub __gregs: ::__gregset_t, - pub mc_vfp_size: ::__size_t, + pub mc_vfp_size: usize, pub mc_vfp_ptr: *mut ::c_void, pub mc_spare: [::c_uint; 33], }