bug 412796: typos in earlier commit. r=brendan
authorTaras Glek <tglek@mozilla.com>
Mon, 12 Oct 2009 11:56:37 -0700
changeset 33773 f1b51a6c326b
parent 33772 3205228e9838
child 33774 551856c1b38d
push id9675
push usertglek@mozilla.com
push date2009-10-12 19:00 +0000
treeherdermozilla-central@f1b51a6c326b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbrendan
bugs412796
milestone1.9.3a1pre
bug 412796: typos in earlier commit. r=brendan
xpcom/io/nsFastLoadFile.cpp
--- a/xpcom/io/nsFastLoadFile.cpp
+++ b/xpcom/io/nsFastLoadFile.cpp
@@ -866,26 +866,26 @@ nsFastLoadFileReader::Open()
         return rv;
 
     PRInt64 size = PR_Available64(mFd);
     if (size >= PR_INT32_MAX)
         return NS_ERROR_FILE_TOO_BIG;
 
     mFileLen = (PRUint32) size;
 
-    PRFileMap *mFileMap = PR_CreateFileMap(mFd, mFileLen, PR_PROT_READONLY);
+    mFileMap = PR_CreateFileMap(mFd, mFileLen, PR_PROT_READONLY);
     if (!mFileMap)
         return NS_ERROR_FAILURE;
 
     mFileData = (PRUint8*) PR_MemMap(mFileMap, 0, mFileLen);
 
     if (mFileLen < sizeof(nsFastLoadHeader))
         return NS_ERROR_FAILURE;
     
-#ifdef XP_UNIX
+#if defined(XP_UNIX) && !defined(SOLARIS)
     madvise(mFileData, mFileLen, MADV_WILLNEED);
 #endif
 
     rv = ReadHeader(&mHeader);
     if (NS_FAILED(rv))
         return rv;
 
     if (mHeader.mVersion != MFL_FILE_VERSION ||