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