pkgsrc/mail/thunderbird31/patches/patch-mozilla_js_src_gc_Memory.cpp
ryoon 6e95e654f9 Import thunderbird31-31.7.0 as mail/thunderbird31.
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 tracks 31 ESR.
2015-07-13 17:49:26 +00:00

13 lines
624 B
C++

$NetBSD: patch-mozilla_js_src_gc_Memory.cpp,v 1.1 2015/07/13 17:49:26 ryoon Exp $
--- mozilla/js/src/gc/Memory.cpp.orig 2015-05-07 18:53:49.000000000 +0000
+++ mozilla/js/src/gc/Memory.cpp
@@ -212,7 +212,7 @@ gc::InitMemorySubsystem(JSRuntime* rt)
static inline void*
MapMemory(size_t length, int prot, int flags, int fd, off_t offset)
{
-#if defined(__ia64__)
+#if defined(__ia64__) || (defined(__sparc64__) && defined(__NetBSD__))
/*
* The JS engine assumes that all allocated pointers have their high 17 bits clear,
* which ia64's mmap doesn't support directly. However, we can emulate it by passing