ca724f
From fd6847c9416f9eebde636e21d794d25d1be8791d Mon Sep 17 00:00:00 2001
ca724f
From: Mike Hommey <mh@glandium.org>
ca724f
Date: Sat, 1 Jun 2019 09:06:01 +0900
ca724f
Subject: [PATCH] Bug 1526653 - Include struct definitions for user_vfp and
ca724f
 user_vfp_exc.
ca724f
ca724f
---
ca724f
 js/src/wasm/WasmSignalHandlers.cpp | 11 ++++++++++-
ca724f
 1 file changed, 10 insertions(+), 1 deletion(-)
ca724f
ca724f
diff --git a/js/src/wasm/WasmSignalHandlers.cpp b/js/src/wasm/WasmSignalHandlers.cpp
ca724f
index 636537f8478..383c380f04c 100644
ca724f
--- a/js/src/wasm/WasmSignalHandlers.cpp
ca724f
+++ b/js/src/wasm/WasmSignalHandlers.cpp
ca724f
@@ -248,7 +248,16 @@ using mozilla::DebugOnly;
ca724f
 #endif
ca724f
 
ca724f
 #ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
ca724f
-#  include <sys/user.h>
ca724f
+struct user_vfp {
ca724f
+  unsigned long long fpregs[32];
ca724f
+  unsigned long fpscr;
ca724f
+};
ca724f
+
ca724f
+struct user_vfp_exc {
ca724f
+  unsigned long fpexc;
ca724f
+  unsigned long fpinst;
ca724f
+  unsigned long fpinst2;
ca724f
+};
ca724f
 #endif
ca724f
 
ca724f
 #if defined(ANDROID)
ca724f
-- 
ca724f
2.20.1
ca724f