components/desktop/firefox/patches/firefox-44-readahead.patch
author Stacy Yeh <stacy.yeh@oracle.com>
Tue, 01 Mar 2016 12:56:53 -0800
changeset 5527 611b2d6efdfe
parent 5255 components/desktop/firefox/patches/firefox31-gnu-ReadAheadFile.patch@cea0e462549a
permissions -rw-r--r--
21602607 Need to move Firefox to 38.5.0 ESR branch to continue getting fixes 22757279 Update Thunderbird to version 38.5.0 22613259 thunderbird lightning extension is missing l10n after moved to userland 21133062 problem in TBIRD/MAILER

In-house patch for firefox to build with GNU compilers. 
With GNU compiler, we have hunspell_fopen_hooks.h included 
through mozilla-config.h.
But we don't have an implementation for mozilla::ReadAheadFile().
Do not plan to send upstream.

diff --git a/xpcom/glue/FileUtils.cpp b/xpcom/glue/FileUtils.cpp
--- a/xpcom/glue/FileUtils.cpp
+++ b/xpcom/glue/FileUtils.cpp
@@ -481,17 +481,17 @@ mozilla::ReadAheadFile(mozilla::pathstr_
   }
   if (fd == INVALID_HANDLE_VALUE) {
     return;
   }
   ReadAhead(fd, aOffset, aCount);
   if (!aOutFd) {
     CloseHandle(fd);
   }
-#elif defined(LINUX) && !defined(ANDROID) || defined(XP_MACOSX)
+#elif defined(LINUX) && !defined(ANDROID) || defined(XP_MACOSX) || defined(SOLARIS)
   if (!aFilePath) {
     if (aOutFd) {
       *aOutFd = -1;
     }
     return;
   }
   int fd = open(aFilePath, O_RDONLY);
   if (aOutFd) {