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