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