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