From daf4c4e18338a097c978d51fa81ab9bb7245b287 Mon Sep 17 00:00:00 2001 From: "dp%netscape.com" Date: Thu, 1 Apr 1999 07:48:25 +0000 Subject: [PATCH] Unix Only: XPCOM was being initialized from a static initializer in netlib. Removed the static inializer. This will get xpcom to be initialized after main() not before it. git-svn-id: svn://10.0.0.236/trunk@25834 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/network/module/nsNetService.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mozilla/network/module/nsNetService.cpp b/mozilla/network/module/nsNetService.cpp index 15079661bf1..e8fddc9bfa1 100644 --- a/mozilla/network/module/nsNetService.cpp +++ b/mozilla/network/module/nsNetService.cpp @@ -80,7 +80,7 @@ static HINSTANCE g_hInst = NULL; #ifdef NS_NET_FILE #include "nsNetFile.h" -#ifdef XP_MAC +#if defined(XP_MAC) || defined(XP_UNIX) static nsNetFileInit* netFileInit = nsnull; #else static nsNetFileInit netFileInit; @@ -1303,7 +1303,7 @@ struct nsNetlibInit { } }; -#ifdef XP_MAC +#if defined(XP_MAC) || defined(XP_UNIX) static nsNetlibInit* netlibInit = nsnull; #else static nsNetlibInit netlibInit; @@ -1320,7 +1320,7 @@ NS_NET nsresult NS_NewINetService(nsINetService** aInstancePtrResult, return NS_ERROR_NO_AGGREGATION; } -#ifdef XP_MAC +#if defined(XP_MAC) || defined(XP_UNIX) // Perform static initialization... if (nsnull == netlibInit) { netlibInit = new nsNetlibInit;