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