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