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