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