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