summaryrefslogtreecommitdiff
path: root/lang/python22/patches/patch-na
blob: 8aee908268a2059343d5f513a64ef659306fb0de (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:24:11 rillig Exp $

--- Modules/mmapmodule.c.orig	2003-02-07 20:46:44.000000000 +0100
+++ Modules/mmapmodule.c	2007-10-10 13:19:54.000000000 +0200
@@ -428,6 +428,10 @@ mmap_resize_method(mmap_object *self,
 	} 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