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