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