summaryrefslogtreecommitdiffstats
path: root/debian/patches/fixes/Bug-1526653-Include-struct-definitions-for-user_vfp-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fixes/Bug-1526653-Include-struct-definitions-for-user_vfp-.patch')
-rw-r--r--debian/patches/fixes/Bug-1526653-Include-struct-definitions-for-user_vfp-.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/patches/fixes/Bug-1526653-Include-struct-definitions-for-user_vfp-.patch b/debian/patches/fixes/Bug-1526653-Include-struct-definitions-for-user_vfp-.patch
new file mode 100644
index 0000000000..c944d70ce9
--- /dev/null
+++ b/debian/patches/fixes/Bug-1526653-Include-struct-definitions-for-user_vfp-.patch
@@ -0,0 +1,31 @@
+From: Mike Hommey <mh@glandium.org>
+Date: Sat, 1 Jun 2019 09:06:01 +0900
+Subject: Bug 1526653 - Include struct definitions for user_vfp and
+ user_vfp_exc.
+
+---
+ js/src/wasm/WasmSignalHandlers.cpp | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+diff --git a/js/src/wasm/WasmSignalHandlers.cpp b/js/src/wasm/WasmSignalHandlers.cpp
+index 6ab1a0c..ed9c2e5 100644
+--- a/js/src/wasm/WasmSignalHandlers.cpp
++++ b/js/src/wasm/WasmSignalHandlers.cpp
+@@ -252,7 +252,16 @@ using mozilla::DebugOnly;
+ #endif
+
+ #ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
+-# include <sys/user.h>
++struct user_vfp {
++ unsigned long long fpregs[32];
++ unsigned long fpscr;
++};
++
++struct user_vfp_exc {
++ unsigned long fpexc;
++ unsigned long fpinst;
++ unsigned long fpinst2;
++};
+ #endif
+
+ #if defined(ANDROID)