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