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