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