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