summaryrefslogtreecommitdiff
path: root/www/seamonkey/files/patch-mozilla-js-src-methodjit-MethodJIT.cpp
blob: 009b469dcd7f4cfeb0361ae4ae1143d36b2af0a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)