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