1From fd6847c9416f9eebde636e21d794d25d1be8791d Mon Sep 17 00:00:00 2001 2From: Mike Hommey <mh@glandium.org> 3Date: Sat, 1 Jun 2019 09:06:01 +0900 4Subject: [PATCH] Bug 1526653 - Include struct definitions for user_vfp and 5 user_vfp_exc. 6 7* We need this to fix arm builds 8* Stolen from [1] 9 10[1] https://salsa.debian.org/mozilla-team/firefox/commit/fd6847c9416f9eebde636e21d794d25d1be8791d 11 12Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> 13 14Upstream-Status: Pending 15--- 16 js/src/wasm/WasmSignalHandlers.cpp | 11 ++++++++++- 17 1 file changed, 10 insertions(+), 1 deletion(-) 18 19diff --git a/js/src/wasm/WasmSignalHandlers.cpp b/js/src/wasm/WasmSignalHandlers.cpp 20index 636537f8478..383c380f04c 100644 21--- a/js/src/wasm/WasmSignalHandlers.cpp 22+++ b/js/src/wasm/WasmSignalHandlers.cpp 23@@ -248,7 +248,16 @@ using mozilla::DebugOnly; 24 #endif 25 26 #ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS 27-# include <sys/user.h> 28+struct user_vfp { 29+ unsigned long long fpregs[32]; 30+ unsigned long fpscr; 31+}; 32+ 33+struct user_vfp_exc { 34+ unsigned long fpexc; 35+ unsigned long fpinst; 36+ unsigned long fpinst2; 37+}; 38 #endif 39 40 #if defined(ANDROID) 41-- 42GitLab 43 44