summaryrefslogtreecommitdiff
path: root/www/firefox38/patches/patch-xpcom_glue_standalone_nsXPCOMGlue.cpp
blob: d604f4f40da4708dd5f6ef99682cee096baa9af7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-xpcom_glue_standalone_nsXPCOMGlue.cpp,v 1.1 2015/07/09 14:13:52 ryoon Exp $

Fix inconsistent use of XP_DARWIN and XP_MACOSX: LEADING_UNDERSCORE
should be empty when we are going to load XPCOM using dlopen(3), not
NSAddImage().

--- xpcom/glue/standalone/nsXPCOMGlue.cpp.orig	2015-01-30 05:17:58.000000000 +0000
+++ xpcom/glue/standalone/nsXPCOMGlue.cpp
@@ -30,7 +30,7 @@ static bool do_preload = false;
 #endif
 
 #if defined(SUNOS4) || defined(NEXTSTEP) || \
-    defined(XP_DARWIN) || \
+    defined(XP_MACOSX) || \
     (defined(OPENBSD) || defined(NETBSD)) && !defined(__ELF__)
 #define LEADING_UNDERSCORE "_"
 #else