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