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