1 --- seamonkey-1.1.11/mozilla/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp 2006-02-22 22:57:09.000000000 +0100
2 +++ seamonkey-1.1.11/mozilla/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp.fixed 2008-09-23 21:15:21.000000000 +0200
5 XPCOMGlueLoad(const char *xpcomFile)
7 - char xpcomDir[MAXPATHLEN];
8 - if (realpath(xpcomFile, xpcomDir)) {
10 + if (xpcomDir = realpath(xpcomFile, NULL)) {
11 char *lastSlash = strrchr(xpcomDir, '/');
16 sXULLibHandle = dlopen(xpcomDir, RTLD_GLOBAL | RTLD_LAZY);
21 // RTLD_DEFAULT is not defined in non-GNU toolchains, and it is