summaryrefslogtreecommitdiff
path: root/lang/python21/patches
diff options
context:
space:
mode:
authorrillig <rillig>2007-10-10 11:15:13 +0000
committerrillig <rillig>2007-10-10 11:15:13 +0000
commitf7d4d57ae46304c95f37afb02f74c70d4f59a33f (patch)
tree8865cbbb8269a85373ca24615211df6b849ff242 /lang/python21/patches
parentdb3826cd5ba3d3018e991f9e5143f9cb7510d779 (diff)
downloadpkgsrc-f7d4d57ae46304c95f37afb02f74c70d4f59a33f.tar.gz
Fixed mremap on NetBSD.
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