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