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