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