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