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