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