pkgsrc/mail/thunderbird24/patches/patch-mozilla_modules_libjar_nsZipArchive.cpp
ryoon 193e022a9f Import thunderbird24-24.7.0 as mail/thunderbird24.
Mozilla Thunderbird is a redesign of the Mozilla mail component. The
goal is to produce a cross platform stand alone mail application using
the XUL user interface language. This version uses the gtk2 toolkit.

This package tracks Thunderbird 24 branch.
2014-07-27 05:36:07 +00:00

15 lines
694 B
C++

$NetBSD: patch-mozilla_modules_libjar_nsZipArchive.cpp,v 1.1 2014/07/27 05:36:07 ryoon Exp $
--- mozilla/modules/libjar/nsZipArchive.cpp.orig 2013-10-23 22:09:14.000000000 +0000
+++ mozilla/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) {