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