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