193e022a9f
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.
16 lines
533 B
C++
16 lines
533 B
C++
$NetBSD: patch-mozilla_mfbt_Poison.cpp,v 1.1 2014/07/27 05:36:07 ryoon Exp $
|
|
|
|
--- mozilla/mfbt/Poison.cpp.orig 2013-10-23 22:09:13.000000000 +0000
|
|
+++ mozilla/mfbt/Poison.cpp
|
|
@@ -125,7 +125,11 @@ ReleaseRegion(void *region, uintptr_t si
|
|
static bool
|
|
ProbeRegion(uintptr_t region, uintptr_t size)
|
|
{
|
|
+#if !defined(__sun__)
|
|
if (madvise(reinterpret_cast<void*>(region), size, MADV_NORMAL)) {
|
|
+#else
|
|
+ if (posix_madvise(reinterpret_cast<void*>(region), size, MADV_NORMAL)) {
|
|
+#endif
|
|
return true;
|
|
} else {
|
|
return false;
|