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