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