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