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