pkgsrc/www/seamonkey/patches/patch-mozilla_mfbt_Poison.cpp
ryoon c6a65eeffc Update to 2.30
* Update enigmail to 1.7.2

Changelog:
* SeaMonkey specific changes are not available.
* Use xul engine from Firefox 33.
2014-11-02 05:40:31 +00:00

16 lines
539 B
C++

$NetBSD: patch-mozilla_mfbt_Poison.cpp,v 1.2 2014/11/02 05:40:31 ryoon Exp $
--- mozilla/mfbt/Poison.cpp.orig 2014-10-14 06:36:32.000000000 +0000
+++ mozilla/mfbt/Poison.cpp
@@ -129,7 +129,11 @@ ReleaseRegion(void* aRegion, uintptr_t a
static bool
ProbeRegion(uintptr_t aRegion, uintptr_t aSize)
{
+#if !defined(__sun__)
if (madvise(reinterpret_cast<void*>(aRegion), aSize, MADV_NORMAL)) {
+#else
+ if (posix_madvise(reinterpret_cast<void*>(aRegion), aSize, MADV_NORMAL)) {
+#endif
return true;
} else {
return false;