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