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