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