diff --git a/mozilla/xpfe/bootstrap/nsAppRunner.cpp b/mozilla/xpfe/bootstrap/nsAppRunner.cpp index acdd66149cc..689867ef2b8 100644 --- a/mozilla/xpfe/bootstrap/nsAppRunner.cpp +++ b/mozilla/xpfe/bootstrap/nsAppRunner.cpp @@ -1549,7 +1549,6 @@ public: int main(int argc, char* argv[]) { NS_TIMELINE_MARK("enter main"); - int i; //Moved here due to portability guideline 20. See bug 258055 #ifdef XP_WIN32 // Suppress the "DLL Foo could not be found" dialog, such that if dependent @@ -1594,22 +1593,25 @@ int main(int argc, char* argv[]) argc = NS_TraceMallocStartupArgs(argc, argv); #endif +#if defined(MOZ_WIDGET_GTK) || defined(MOZ_WIDGET_GTK2) || defined(MOZ_X11) + int i; +#endif + #ifdef MOZ_X11 /* Init threadsafe mode of Xlib API on demand * (currently this is only for testing, future builds may use this by * default) */ - PRBool x11threadsafe = PR_FALSE; - for (i=1; i