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