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