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