summaryrefslogtreecommitdiff
path: root/lang/python21/patches
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python21/patches')
-rw-r--r--lang/python21/patches/patch-na15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/python21/patches/patch-na b/lang/python21/patches/patch-na
new file mode 100644
index 00000000000..658d3812a03
--- /dev/null
+++ b/lang/python21/patches/patch-na
@@ -0,0 +1,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