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