Bug 496708 - add biarch system plugin location (Linux); r=joshmoz, sr=roc

This commit is contained in:
Wolfgang Rosenauer 2009-06-24 09:21:43 +02:00
parent 249e036bad
commit 79b00e401a

View File

@ -231,7 +231,12 @@ nsAppFileLocationProvider::GetFile(const char *prop, PRBool *persistent, nsIFile
}
#ifdef XP_UNIX
else if (nsCRT::strcmp(prop, NS_SYSTEM_PLUGINS_DIR) == 0) {
static const char *const sysLPlgDir = "/usr/lib/mozilla/plugins";
static const char *const sysLPlgDir =
#if defined(HAVE_USR_LIB64_DIR) && defined(__LP64__)
"/usr/lib64/mozilla/plugins";
#else
"/usr/lib/mozilla/plugins";
#endif
rv = NS_NewNativeLocalFile(nsDependentCString(sysLPlgDir),
PR_FALSE, getter_AddRefs(localFile));
}