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