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