diff options
Diffstat (limited to 'www/firefox52/patches/patch-modules_libjar_nsZipArchive.cpp')
-rw-r--r-- | www/firefox52/patches/patch-modules_libjar_nsZipArchive.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/www/firefox52/patches/patch-modules_libjar_nsZipArchive.cpp b/www/firefox52/patches/patch-modules_libjar_nsZipArchive.cpp new file mode 100644 index 00000000000..989f21c8757 --- /dev/null +++ b/www/firefox52/patches/patch-modules_libjar_nsZipArchive.cpp @@ -0,0 +1,17 @@ +$NetBSD: patch-modules_libjar_nsZipArchive.cpp,v 1.1 2017/04/27 01:55:57 ryoon Exp $ + +* Support Solaris + +--- modules/libjar/nsZipArchive.cpp.orig 2013-06-18 11:01:37.000000000 +0000 ++++ modules/libjar/nsZipArchive.cpp +@@ -590,7 +590,9 @@ MOZ_WIN_MEM_TRY_BEGIN + // Success means optimized jar layout from bug 559961 is in effect + uint32_t readaheadLength = xtolong(startp); + if (readaheadLength) { +-#if defined(XP_UNIX) ++#if defined(OS_SOLARIS) ++ posix_madvise(const_cast<uint8_t*>(startp), readaheadLength, POSIX_MADV_WILLNEED); ++#elif defined(XP_UNIX) + madvise(const_cast<uint8_t*>(startp), readaheadLength, MADV_WILLNEED); + #elif defined(XP_WIN) + if (aFd) { |