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