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