components/desktop/thunderbird/patches/thunderbird-31-gnu-ReadAheadFile.patch
changeset 5527 611b2d6efdfe
parent 5526 570ac9aab8b2
child 5528 f2f5af510081
--- a/components/desktop/thunderbird/patches/thunderbird-31-gnu-ReadAheadFile.patch	Tue Mar 01 10:33:35 2016 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-Patch to fix an issue where the Thunderbird dictionary was not 
-being read and words were incorrectly showing up as misspelled
-on Solaris when Thunderbird is built with the GNU compilers. 
-
-diff --git a/mozilla/xpcom/glue/FileUtils.cpp b/mozilla/xpcom/glue/FileUtils.cpp
---- a/mozilla/xpcom/glue/FileUtils.cpp
-+++ b/mozilla/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) {