blob: 658d3812a032c5aae5879181d520bad621fa7162 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-na,v 1.1 2007/10/10 11:21:53 rillig Exp $
--- Modules/mmapmodule.c.orig 2001-07-16 17:45:20.000000000 +0200
+++ Modules/mmapmodule.c 2007-10-10 13:18:05.000000000 +0200
@@ -394,6 +394,10 @@
} else {
void *newmap;
+#if defined(__NetBSD__)
+# define mremap(a, b, c, d) (mremap)((a), (b), NULL, (c), (d))
+#endif
+
#ifdef MREMAP_MAYMOVE
newmap = mremap(self->data, self->size, new_size, MREMAP_MAYMOVE);
#else
|