summaryrefslogtreecommitdiff
path: root/mail/thunderbird45/patches/patch-mozilla_modules_libjar_nsZipArchive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mail/thunderbird45/patches/patch-mozilla_modules_libjar_nsZipArchive.cpp')
-rw-r--r--mail/thunderbird45/patches/patch-mozilla_modules_libjar_nsZipArchive.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/mail/thunderbird45/patches/patch-mozilla_modules_libjar_nsZipArchive.cpp b/mail/thunderbird45/patches/patch-mozilla_modules_libjar_nsZipArchive.cpp
new file mode 100644
index 00000000000..0222e39f337
--- /dev/null
+++ b/mail/thunderbird45/patches/patch-mozilla_modules_libjar_nsZipArchive.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-mozilla_modules_libjar_nsZipArchive.cpp,v 1.1 2017/04/27 13:38:19 ryoon Exp $
+
+--- mozilla/modules/libjar/nsZipArchive.cpp.orig 2016-04-07 21:33:29.000000000 +0000
++++ mozilla/modules/libjar/nsZipArchive.cpp
+@@ -626,7 +626,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) {