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