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