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