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