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