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