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