pkgsrc/www/elinks/patches/patch-ae
bjs a148457968 Update to elinks-0.12pre2. Kerberos support has been added,
as well as support for boehm-gc and utf8.  Myriad bug fixes.
I've switched the javascript support library over too lang/see,
as it seems to work better.  If a release does not come out by
the next branch, I will package a snapshot, as it seems like
they've fixed even more bugs in the development tree.
2008-11-06 08:33:31 +00:00

26 lines
787 B
Text

$NetBSD: patch-ae,v 1.2 2008/11/06 08:33:31 bjs Exp $
--- src/util/memory.c.orig 2008-09-21 04:45:22.000000000 -0400
+++ src/util/memory.c
@@ -21,6 +21,12 @@
#include "util/error.h"
#include "util/memory.h"
+#if defined(__NetBSD__)
+# define MREMAP(p, oldsz, newsz, f) mremap(p, oldsz, p, newsz, f)
+# define MREMAP_MAYMOVE 0
+#else
+# define MREMAP(p, oldsz, newsz, f) mremap(p, oldsz, newsz, f)
+#endif
#if !defined(DEBUG_MEMLEAK) && !defined(CONFIG_FASTMEM)
@@ -181,7 +187,7 @@ mem_mmap_realloc(void *p, size_t old_siz
if (new_size) {
#ifdef HAVE_MREMAP
- void *p2 = mremap(p, round_size(old_size), round_size(new_size), MREMAP_MAYMOVE);
+ void *p2 = MREMAP(p, round_size(old_size), round_size(new_size), MREMAP_MAYMOVE);
if (p2 != MAP_FAILED)
return p2;