* Fix some syscall definitions in JavaScript are fixed. Thank you, tho@. Changelog: FIXED 27.0.1 - Fixed stability issues with Greasemonkey and other JS that used ClearTimeoutOrInterval FIXED 27.0.1 - JS math correctness issue (bug 941381
15 lines
670 B
C++
15 lines
670 B
C++
$NetBSD: patch-modules_libjar_nsZipArchive.cpp,v 1.3 2014/02/20 13:19:03 ryoon Exp $
|
|
|
|
--- 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) {
|