summaryrefslogtreecommitdiff
path: root/mail/thunderbird/files/patch-mozilla-js-src-methodjit-MethodJIT.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mail/thunderbird/files/patch-mozilla-js-src-methodjit-MethodJIT.cpp')
-rw-r--r--mail/thunderbird/files/patch-mozilla-js-src-methodjit-MethodJIT.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/thunderbird/files/patch-mozilla-js-src-methodjit-MethodJIT.cpp b/mail/thunderbird/files/patch-mozilla-js-src-methodjit-MethodJIT.cpp
new file mode 100644
index 000000000000..009b469dcd7f
--- /dev/null
+++ b/mail/thunderbird/files/patch-mozilla-js-src-methodjit-MethodJIT.cpp
@@ -0,0 +1,20 @@
+--- mozilla/js/src/methodjit/MethodJIT.cpp~
++++ mozilla/js/src/methodjit/MethodJIT.cpp
+@@ -171,7 +171,7 @@
+
+ JS_STATIC_ASSERT(offsetof(FrameRegs, sp) == 0);
+
+-#if defined(__linux__) && defined(JS_CPU_X64)
++#if defined(__ELF__) && defined(JS_CPU_X64)
+ # define SYMBOL_STRING_RELOC(name) #name "@plt"
+ #else
+ # define SYMBOL_STRING_RELOC(name) SYMBOL_STRING(name)
+@@ -149,7 +149,7 @@
+
+ #if defined(XP_MACOSX)
+ # define HIDE_SYMBOL(name) ".private_extern _" #name
+-#elif defined(__linux__)
++#elif defined(__ELF__)
+ # define HIDE_SYMBOL(name) ".hidden" #name
+ #else
+ # define HIDE_SYMBOL(name)